File tree 1 file changed +6
-4
lines changed
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)
18
18
Hashtbl. replace t i i
19
19
done ;
20
20
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
22
22
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
24
27
25
28
let work _ state =
26
29
let rec work () =
@@ -46,15 +49,14 @@ let run_one ~budgetf ~n_domains ?(n_ops = 40 * Util.iter_factor)
46
49
in
47
50
work ()
48
51
in
49
- let after () = Atomic. set n_ops_todo n_ops in
50
52
51
53
let config =
52
54
Printf. sprintf " %d worker%s, %d%% reads" n_domains
53
55
(if n_domains = 1 then " " else " s" )
54
56
percent_read
55
57
in
56
58
57
- Times. record ~budgetf ~n_domains ~init ~work ~after ()
59
+ Times. record ~budgetf ~n_domains ~init ~work ()
58
60
|> Times. to_thruput_metrics ~n: n_ops ~singular: " operation" ~config
59
61
60
62
let run_suite ~budgetf =
You can’t perform that action at this time.
0 commit comments