Skip to content

Commit 3ad24a0

Browse files
authored
Merge pull request #366 from ocaml-bench/longer_runs
Make some benchmarks run longer
2 parents 6149ea8 + 2ac10f0 commit 3ad24a0

File tree

5 files changed

+22
-8
lines changed

5 files changed

+22
-8
lines changed

benchmarks/hamming/hamming.ml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
int64 is a bit short, so we roll our own 37-digit numbers...
66
*)
77

8+
9+
810
let n0 = Int64.of_int 0;;
911
let n1 = Int64.of_int 1;;
1012
let n2 = Int64.of_int 2;;
@@ -91,4 +93,7 @@ let rec hamming = lazy (Cons (nn1, merge cmp ham2 (merge cmp ham3 ham5)))
9193
and ham5 = lazy (force (map x5 hamming))
9294
;;
9395

94-
iter_interval pr hamming (88000, 88100);;
96+
let n = try int_of_string Sys.argv.(1) with _ -> 200
97+
;;
98+
99+
iter_interval pr hamming (88000, Stdlib.(+) 88000 n);;

benchmarks/numerical-analysis/durand_kerner_aberth.ml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -176,6 +176,8 @@ let cs =
176176
Array.sub cs 0 (Array.length cs * len / 100)
177177

178178
let main () =
179-
roots cs
179+
for i=1 to 10 do
180+
roots cs |> ignore
181+
done
180182

181-
let () = main () |> ignore
183+
let () = main ()

run_all_serial.sh

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,11 @@
22

33
TAG='"macro_bench"' make run_config_filtered.json
44

5-
USE_SYS_DUNE_HACK=1 RUN_CONFIG_JSON=run_config_filtered.json make ocaml-versions/5.0.0+stable.bench
5+
OPT_WAIT=0 USE_SYS_DUNE_HACK=1 \
6+
SANDMARK_CUSTOM_NAME=5.1.0+trunk \
7+
RUN_CONFIG_JSON=run_config_filtered.json \
8+
make ocaml-versions/5.1.0+trunk.bench
9+
OPT_WAIT=0 USE_SYS_DUNE_HACK=1 \
10+
SANDMARK_CUSTOM_NAME=5.1.0+trunk+decouple_gc \
11+
RUN_CONFIG_JSON=run_config_filtered.json \
12+
make ocaml-versions/5.1.0+trunk+decouple_gc.bench

run_config.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -651,7 +651,7 @@
651651
],
652652
"runs": [
653653
{
654-
"params": "5000"
654+
"params": "10_000"
655655
}
656656
]
657657
},
@@ -1557,7 +1557,7 @@
15571557
],
15581558
"runs": [
15591559
{
1560-
"params": "200"
1560+
"params": "1_000_000"
15611561
}
15621562
]
15631563
}

run_config_byte.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@
6060
"name": "zarith_pi.bc",
6161
"runs": [
6262
{
63-
"params": "5000"
63+
"params": "10_000"
6464
}
6565
]
6666
},
@@ -684,7 +684,7 @@
684684
"name": "hamming.bc",
685685
"runs": [
686686
{
687-
"params": ""
687+
"params": "10_000"
688688
}
689689
]
690690
},

0 commit comments

Comments
 (0)