Skip to content

Commit 33c00a6

Browse files
committed
WIP
1 parent 0f330c6 commit 33c00a6

File tree

3 files changed

+7
-6
lines changed

3 files changed

+7
-6
lines changed

benchmarks/run.ml

+3-3
Original file line numberDiff line numberDiff line change
@@ -34,13 +34,13 @@ module Param = struct
3434
{ warm_up_time = 1.0
3535
; min_measures = 10
3636
; max_confidence = 0.03
37-
; max_duration = 20.
37+
; max_duration = 120.
3838
; verbose = false
3939
}
4040

41-
let fast x = { x with min_measures = 5; max_confidence = 0.15 }
41+
let fast x = { x with min_measures = 5; max_confidence = 0.15; max_duration = 20. }
4242

43-
let ffast x = { x with min_measures = 2; max_confidence = 42. }
43+
let ffast x = { x with min_measures = 2; max_confidence = 42.; max_duration = 20. }
4444

4545
let verbose x = { x with verbose = true }
4646
end

benchmarks/utils/aggregate.sh

-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ TEMP=$(mktemp)
44
tee $TEMP | \
55
jq '.name |= "Js vs Wasm"' | \
66
jq '.results[] |= select(.name | test("Code size") | not)' |\
7-
jq '.results[].metrics[] |= select(.name as $n | ["kb", "boyer", "fannkuch_redux_2"] | index($n) | not)' | \
87
jq '.results[].metrics[].name |= if test("/") then .+"-'$1'" else .+"/'$1'" end'
98
cat $TEMP
109
rm $TEMP

benchmarks/utils/compilation_metrics.ml

+4-2
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,12 @@ let () =
1616
with End_of_file -> ());
1717
let l = Hashtbl.fold (fun nm v rem -> (nm, v) :: rem) times [] in
1818
let l = List.filter (fun (_, v) -> v > 0.2) l in
19-
let l = List.map (fun (nm, v) -> "phase/" ^ nm, "s", v) l in
19+
let l = List.map (fun (nm, v) -> "Compilation phases/" ^ nm, "s", v) l in
2020
let l' =
2121
Scanf.sscanf !last_line "%f:%f %f" (fun m s mem ->
22-
[ "Compilation time", "s", (m *. 60.) +. s; "Memory usage", "KiB", mem ])
22+
[ "Compilation time", "s", (m *. 60.) +. s
23+
; "Compilation memory usage", "KiB", mem
24+
])
2325
in
2426
Format.printf
2527
{|{ "name": "%s",

0 commit comments

Comments
 (0)