diff benchmark/benchmark_utils.jl @ 1901:edee7d677efb feature/grids/manifolds

Merge default
author Jonatan Werpers <jonatan@werpers.com>
date Sat, 01 Feb 2025 21:38:49 +0100
parents 9d708f3300d5
children
line wrap: on
line diff
--- a/benchmark/benchmark_utils.jl	Mon Jan 27 08:56:39 2025 +0100
+++ b/benchmark/benchmark_utils.jl	Sat Feb 01 21:38:49 2025 +0100
@@ -10,7 +10,7 @@
 const template_path = joinpath(diffinitive_root, "benchmark/result.tmpl")
 
 """
-    mainmain(;rev=nothing, target=nothing, baseline=nothing , kwargs...)
+    main(;rev=nothing, target=nothing, baseline=nothing , kwargs...)
 
 Calls `run_benchmark(args...; kwargs...)` and writes the results as an HTML
 file in `benchmark/results`.
@@ -82,7 +82,7 @@
 
 Returns a `PkgBenchmark.BenchmarkJudgement`
 """
-function compare_benchmarks(target, baseline, f=minimum; judgekwargs=Dict(), kwargs...)
+function compare_benchmarks(target, baseline; f=minimum, judgekwargs=Dict(), kwargs...)
     t = run_benchmark(target; kwargs...)
     b = run_benchmark(baseline; kwargs...)
 
@@ -97,7 +97,7 @@
 
 Accepts the same arguments as the two revision version.
 """
-function compare_benchmark(baseline, f=minimum; judgekwargs=Dict(), kwargs...)
+function compare_benchmarks(baseline; f=minimum, judgekwargs=Dict(), kwargs...)
     t = run_benchmark(;kwargs...)
     b = run_benchmark(baseline; kwargs...)