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:
Regular → Executable
+3
-1
@@ -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"),
|
||||
|
||||
Reference in New Issue
Block a user