feat: add map benchmark scripts for lua, python, ruby, and wren
Add four new benchmark scripts (maps.lua, maps.py, maps.rb, maps.wren) that measure hash map insertion, lookup, and deletion performance across 100,000 elements. Register the new "maps" benchmark in run_bench.py with expected output 5000050000.
This commit is contained in:
@@ -44,6 +44,8 @@ BENCHMARK("for", r"""499999500000""")
|
||||
BENCHMARK("method_call", r"""true
|
||||
false""")
|
||||
|
||||
BENCHMARK("maps", r"""5000050000""")
|
||||
|
||||
LANGUAGES = [
|
||||
("wren", [os.path.join(HOME_DIR, 'wren')], ".wren"),
|
||||
("lua", ["lua"], ".lua"),
|
||||
|
||||
Reference in New Issue
Block a user