File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -18,9 +18,12 @@ let run_one ~budgetf ~n_domains ?(n_ops = 40 * Util.iter_factor)
1818 Hashtbl. replace t i i
1919 done ;
2020
21- let n_ops_todo = Atomic. make n_ops |> Multicore_magic. copy_as_padded in
21+ let n_ops_todo = Atomic. make 0 |> Multicore_magic. copy_as_padded in
2222
23- let init _ = Random.State. make_self_init () in
23+ let init _ =
24+ Atomic. set n_ops_todo n_ops;
25+ Random.State. make_self_init ()
26+ in
2427
2528 let work _ state =
2629 let rec work () =
@@ -46,15 +49,14 @@ let run_one ~budgetf ~n_domains ?(n_ops = 40 * Util.iter_factor)
4649 in
4750 work ()
4851 in
49- let after () = Atomic. set n_ops_todo n_ops in
5052
5153 let config =
5254 Printf. sprintf " %d worker%s, %d%% reads" n_domains
5355 (if n_domains = 1 then " " else " s" )
5456 percent_read
5557 in
5658
57- Times. record ~budgetf ~n_domains ~init ~work ~after ()
59+ Times. record ~budgetf ~n_domains ~init ~work ()
5860 |> Times. to_thruput_metrics ~n: n_ops ~singular: " operation" ~config
5961
6062let run_suite ~budgetf =
You can’t perform that action at this time.
0 commit comments