diff options
author | David Walter Seikel | 2012-01-23 22:20:50 +1000 |
---|---|---|
committer | David Walter Seikel | 2012-01-23 22:20:50 +1000 |
commit | b88a98ebd2ce08ded95ace1a70916c1fe866e72c (patch) | |
tree | e7db5116f40cd0d9c919ec0a032efd2ddceb8471 | |
parent | Exercise the lua compiler to, and produce an estimate of compile time. Also ... (diff) | |
download | SledjHamr-b88a98ebd2ce08ded95ace1a70916c1fe866e72c.zip SledjHamr-b88a98ebd2ce08ded95ace1a70916c1fe866e72c.tar.gz SledjHamr-b88a98ebd2ce08ded95ace1a70916c1fe866e72c.tar.bz2 SledjHamr-b88a98ebd2ce08ded95ace1a70916c1fe866e72c.tar.xz |
Tweaked the output a little.
-rw-r--r-- | LuaSL/src/LuaSL_main.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/LuaSL/src/LuaSL_main.c b/LuaSL/src/LuaSL_main.c index 47e4881..4bd3bc5 100644 --- a/LuaSL/src/LuaSL_main.c +++ b/LuaSL/src/LuaSL_main.c | |||
@@ -212,7 +212,7 @@ main(int argc, char **argv) | |||
212 | snprintf(buf, sizeof(buf), "%s/Test sim/objects", PACKAGE_DATA_DIR); | 212 | snprintf(buf, sizeof(buf), "%s/Test sim/objects", PACKAGE_DATA_DIR); |
213 | eina_file_dir_list(buf, EINA_TRUE, dirList_cb, &game); | 213 | eina_file_dir_list(buf, EINA_TRUE, dirList_cb, &game); |
214 | diff = timeDiff(&thisTime2, &lastTime2); | 214 | diff = timeDiff(&thisTime2, &lastTime2); |
215 | printf("Compiling %d scripts took %f seconds, that's %f scripts per second.\n", scriptCount, diff, scriptCount / diff); | 215 | printf("Compiling %d LSL scripts took %f seconds, that's %f scripts per second.\n", scriptCount, diff, scriptCount / diff); |
216 | 216 | ||
217 | lslCount = scriptCount; | 217 | lslCount = scriptCount; |
218 | diff0 = diff; | 218 | diff0 = diff; |
@@ -221,7 +221,7 @@ main(int argc, char **argv) | |||
221 | snprintf(buf, sizeof(buf), "%s/testLua", PACKAGE_DATA_DIR); | 221 | snprintf(buf, sizeof(buf), "%s/testLua", PACKAGE_DATA_DIR); |
222 | eina_file_dir_list(buf, EINA_TRUE, dirListLua_cb, &game); | 222 | eina_file_dir_list(buf, EINA_TRUE, dirListLua_cb, &game); |
223 | diff = timeDiff(&thisTime2, &lastTime2); | 223 | diff = timeDiff(&thisTime2, &lastTime2); |
224 | printf("Compiling %d Lua scripts took %f seconds, that's %f scripts per second. B-).\n", scriptCount, diff, scriptCount / diff); | 224 | printf("Compiling %d Lua scripts took %f seconds, that's %f scripts per second.\n\n", scriptCount, diff, scriptCount / diff); |
225 | 225 | ||
226 | printf("Combined estimate of compiling speed is %f scripts per second.\n", 1 / ((diff0 / lslCount) + (diff / scriptCount))); | 226 | printf("Combined estimate of compiling speed is %f scripts per second.\n", 1 / ((diff0 / lslCount) + (diff / scriptCount))); |
227 | 227 | ||