Skip to content

Commit 72d7821

Browse files
committed
Reduce minimum benchmark runs to avoid taking too much time on CI
1 parent 83bfb1e commit 72d7821

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

bench/bench_bounded_q.ml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,8 @@ let run_one ~budgetf ~n_adders ~n_takers ?(n_msgs = 10 * Util.iter_factor) () =
153153
Printf.sprintf "%s, %s" (format "adder" n_adders) (format "taker" n_takers)
154154
in
155155

156-
Times.record ~budgetf ~n_domains ~init ~wrap ~work ()
156+
Times.record ~budgetf ~n_domains ~n_warmups:1 ~n_runs_min:1 ~init ~wrap ~work
157+
()
157158
|> Times.to_thruput_metrics ~n:n_msgs ~singular:"message" ~config
158159

159160
let run_suite ~budgetf =

bench/bench_semaphore.ml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,8 @@ let run_one ~budgetf ~use_domains ~n_resources () =
5050
n_resources
5151
(if n_resources = 1 then "" else "s")
5252
in
53-
Times.record ~budgetf ~n_domains ~init ~wrap ~work ()
53+
Times.record ~budgetf ~n_domains ~n_warmups:1 ~n_runs_min:1 ~init ~wrap ~work
54+
()
5455
|> Times.to_thruput_metrics ~n:(n_ops * n_workers) ~singular:"acquired yield"
5556
~config
5657

0 commit comments

Comments
 (0)