Mercurial > repos > public > sbplib_julia
diff benchmark/benchmark_utils.jl @ 1545:237b980ffb91 bugfix/sbp_operators/stencil_return_type
Fix typo
author | Jonatan Werpers <jonatan@werpers.com> |
---|---|
date | Fri, 12 Apr 2024 12:00:43 +0200 |
parents | 5193e6cd6c6a |
children |
line wrap: on
line diff
--- a/benchmark/benchmark_utils.jl Fri Apr 12 07:49:19 2024 +0200 +++ b/benchmark/benchmark_utils.jl Fri Apr 12 12:00:43 2024 +0200 @@ -72,7 +72,7 @@ end """ - compare_benchmarks(target, baseline, f=minimum; judgekwargs=Dict()) + compare_benchmarks(target, baseline; f=minimum, judgekwargs=Dict(), kwargs...) Runs the benchmark at revisions `target` and `baseline` and compares them using `PkgBenchmark.judge`. `f` is the function used to compare. `judgekwargs` @@ -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...)