Commit Graph

2 Commits

Author SHA1 Message Date
Bob Nystrom
2e71b0c07d fix: increase GC stress in binary_trees_gc benchmark by calling gc 1000 times per cycle 2015-10-28 14:45:52 +00:00
Bob Nystrom
6a56bd2ee9 feat: add binary_trees_gc benchmark that explicitly invokes System.gc
Add a new benchmark variant of the binary_trees test that calls System.gc() after
each tree construction phase to measure garbage collection overhead. The benchmark
creates a stretch tree, a long-lived tree, and iterates through depths 4 to 12
with explicit GC calls between iterations. Register the new benchmark in
util/benchmark.py with expected output values matching the original binary_trees
benchmark.
2015-10-24 18:00:17 +00:00