feat: add string-key map benchmark across lua, py, rb, wren with 1M entries

Add new benchmark files (map_string.lua, map_string.py, map_string.rb, map_string.wren) that test map performance using string keys generated from adverb-adjective combinations. Rename existing numeric map benchmarks from maps.* to map_numeric.* and increase their iteration count from 100k to 1M. Register both benchmarks in script/benchmark.py with their expected output values.
This commit is contained in:
Bob Nystrom
2015-02-12 06:41:59 +00:00
parent 25b9cbf9a1
commit aff3ce54db
9 changed files with 409 additions and 17 deletions
Regular → Executable
+3 -1
View File
@@ -44,7 +44,9 @@ BENCHMARK("for", r"""499999500000""")
BENCHMARK("method_call", r"""true
false""")
BENCHMARK("maps", r"""5000050000""")
BENCHMARK("map_numeric", r"""500000500000""")
BENCHMARK("map_string", r"""3645600""")
LANGUAGES = [
("wren", [os.path.join(WREN_DIR, 'wren')], ".wren"),