We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e106947 commit 5614b82Copy full SHA for 5614b82
harness-ractor/harness.rb
@@ -27,9 +27,14 @@ def join
27
end
28
29
30
+MAX_ITERS = Integer(ENV.fetch("MAX_BENCH_ITRS", 5))
31
+
32
def run_benchmark(num_itrs_hint, ractor_args: [], &block)
- warmup_itrs = Integer(ENV.fetch('WARMUP_ITRS', 10))
33
+ warmup_itrs = Integer(ENV.fetch('WARMUP_ITRS', 5))
34
bench_itrs = Integer(ENV.fetch('MIN_BENCH_ITRS', num_itrs_hint))
35
+ if bench_itrs > MAX_ITERS
36
+ bench_itrs = MAX_ITERS
37
+ end
38
# { num_ractors => [itr_in_ms, ...] }
39
stats = Hash.new { |h,k| h[k] = [] }
40
0 commit comments