Skip to content

Commit

Permalink
Fix benchmarks
Browse files Browse the repository at this point in the history
Signed-off-by: ErikQQY <2283984853@qq.com>
  • Loading branch information
ErikQQY committed Apr 6, 2024
1 parent 1303920 commit 82a0b46
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion bench/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# FractionalCalculus.jl Continuous Benchmarking

Currently we use the BenchmarkTools.jl package to benchmark the performance of FractionalCalculus.jl over time.
Currently, we use the BenchmarkTools.jl package to benchmark the performance of FractionalCalculus.jl over time.

This is built using https://github.com/benchmark-action/github-action-benchmark/ so it
allows for nice visualizations of the benchmark results in github pages and produces warnings on PRs if the benchmarks regress.
6 changes: 3 additions & 3 deletions bench/runbenchmarks.jl
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ const SUITE = BenchmarkGroup()

testf(x) = x^2

SUITE["Caputo"]["CaputoDiethelm"] = @benchmarkable fracdiff(testf, 0.5, 0.01, CaputoDiethelm())
SUITE["Caputo"]["CaputoTrap"] = @benchmarkable fracdiff(testf, 0.5, 0.01, CaputoTrap())
SUITE["Caputo"]["CaputoL1"] = @benchmarkable fracdiff(testf, 0.5, 0.01, CaputoL1())
SUITE["Caputo"]["CaputoDiethelm"] = @benchmarkable fracdiff(testf, 0.5, 1, 0.01, CaputoDiethelm())
SUITE["Caputo"]["CaputoTrap"] = @benchmarkable fracdiff(testf, 0.5, 1, 0.01, CaputoTrap())
SUITE["Caputo"]["CaputoL1"] = @benchmarkable fracdiff(testf, 0.5, 1, 0.01, CaputoL1())

BenchmarkTools.tune!(SUITE)
results = BenchmarkTools.run(SUITE; verbose=true)
Expand Down

0 comments on commit 82a0b46

Please sign in to comment.