@@ -18,7 +18,8 @@ const IS_SUCCESS_WITH_BENCHMARK =
1818Filter function: accepts rows where success is true and iterations data is available.
1919"""
2020const IS_SUCCESS_WITH_ITERATIONS =
21- row -> row. success == true && hasproperty (row, :iterations ) && ! ismissing (row. iterations)
21+ row ->
22+ row. success == true && hasproperty (row, :iterations ) && ! ismissing (row. iterations)
2223
2324"""
2425Filter function: accepts all rows (no additional filtering).
@@ -41,17 +42,15 @@ Extracts the `:time` field from the benchmark object and uses "smaller is better
4142comparison (a <= b). Returns NaN if benchmark data is missing or malformed.
4243"""
4344const CPU_TIME_CRITERION = CTBenchmarks. ProfileCriterion {Float64} (
44- " CPU time" ,
45- row -> begin
45+ " CPU time" , row -> begin
4646 bench = get (row, :benchmark , nothing )
4747 if bench === nothing || ismissing (bench)
4848 return NaN
4949 end
5050 time_raw = get (bench, " time" , nothing )
5151 time_raw === nothing && return NaN
5252 return Float64 (time_raw)
53- end ,
54- (a, b) -> a <= b
53+ end , (a, b) -> a <= b
5554)
5655
5756"""
@@ -68,7 +67,7 @@ const ITERATIONS_CRITERION = CTBenchmarks.ProfileCriterion{Float64}(
6867 end
6968 return Float64 (row. iterations)
7069 end ,
71- (a, b) -> a <= b
70+ (a, b) -> a <= b,
7271)
7372
7473# ───────────────────────────────────────────────────────────────────────────────
@@ -95,7 +94,7 @@ function init_default_profiles!()
9594 CPU_TIME_CRITERION,
9695 IS_SUCCESS_WITH_BENCHMARK,
9796 NO_ADDITIONAL_FILTER,
98- AGGREGATE_MEAN
97+ AGGREGATE_MEAN,
9998 )
10099 CTBenchmarks. register! (PROFILE_REGISTRY, " default_cpu" , cpu_config)
101100
@@ -106,7 +105,7 @@ function init_default_profiles!()
106105 ITERATIONS_CRITERION,
107106 IS_SUCCESS_WITH_ITERATIONS,
108107 NO_ADDITIONAL_FILTER,
109- AGGREGATE_MEAN
108+ AGGREGATE_MEAN,
110109 )
111110 CTBenchmarks. register! (PROFILE_REGISTRY, " default_iter" , iter_config)
112111
@@ -118,9 +117,11 @@ function init_default_profiles!()
118117 CPU_TIME_CRITERION,
119118 IS_SUCCESS_WITH_BENCHMARK,
120119 NO_ADDITIONAL_FILTER,
121- AGGREGATE_MEAN
120+ AGGREGATE_MEAN,
121+ )
122+ CTBenchmarks. register! (
123+ PROFILE_REGISTRY, " midpoint_trapeze_cpu" , midpoint_trapeze_config
122124 )
123- CTBenchmarks. register! (PROFILE_REGISTRY, " midpoint_trapeze_cpu" , midpoint_trapeze_config)
124125
125126 return nothing
126127end
0 commit comments