feat: add Dart benchmarks for binary_trees, delta_blue, fib, for, and method_call

Add five new Dart benchmark implementations (binary_trees, delta_blue, fib, for, method_call) under test/benchmark/ and register the Dart runner using the fletch runtime in util/benchmark.py. The benchmarks are ported from existing Wren and JavaScript versions, covering tree traversal, constraint solving, recursive Fibonacci, loop performance, and method call overhead.
This commit is contained in:
Bob Nystrom
2015-12-05 19:09:30 +00:00
parent a5d08effea
commit 320c804ecf
7 changed files with 917 additions and 0 deletions
+1
View File
@@ -90,6 +90,7 @@ BENCHMARK("string_equals", r"""3000000""")
LANGUAGES = [
("wren", [os.path.join(WREN_BIN, 'wren')], ".wren"),
("dart", ["fletch", "run"], ".dart"),
("lua", ["lua"], ".lua"),
("luajit (-joff)", ["luajit", "-joff"], ".lua"),
("python", ["python"], ".py"),