feat: reduce for-loop benchmark iteration count from 2M to 1M across Lua, Python, Ruby, Wren

Update all four language implementations in the for-loop benchmark to use 1,000,000 iterations instead of 2,000,000, and adjust the expected sum in run_bench from 1999999000000 to 499999500000. Also move timer start to before list construction in Lua, Python, and Ruby, and inline the Wren sum loop into a single line.
This commit is contained in:
Bob Nystrom
2014-01-20 16:43:10 +00:00
parent 7ad96755f4
commit d758f63212
5 changed files with 14 additions and 12 deletions
+1 -1
View File
@@ -30,7 +30,7 @@ BENCHMARK("fib", r"""317811
317811
317811""")
BENCHMARK("for", r"""1999999000000""")
BENCHMARK("for", r"""499999500000""")
BENCHMARK("method_call", r"""true
false""")