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:
Marco Lizza
2015-02-09 10:51:09 +00:00
parent f5def0e3ca
commit 16c13765de
5 changed files with 79 additions and 0 deletions
+2
View File
@@ -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"),