Mercurial > repos > public > sbplib_julia
diff benchmark/benchmark_utils.jl @ 1954:b0915f43b122 feature/sbp_operators/laplace_curvilinear
Merge feature/grids/geometry_functions
author | Jonatan Werpers <jonatan@werpers.com> |
---|---|
date | Sat, 08 Feb 2025 09:38:58 +0100 |
parents | 9d708f3300d5 |
children |
line wrap: on
line diff
--- a/benchmark/benchmark_utils.jl Sat Feb 08 09:35:13 2025 +0100 +++ b/benchmark/benchmark_utils.jl Sat Feb 08 09:38:58 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...)