Skip to content

Commit

Permalink
More 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 7, 2024
1 parent 77d9972 commit 0744025
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 9 deletions.
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,6 @@ docs/site/
# It records a fixed state of all packages used by the project. As such, it should not be
# committed for packages, but should be committed for applications that require a static
# environment.
Manifest.toml
Manifest.toml

bench/benchmark_results.json
8 changes: 4 additions & 4 deletions bench/derivative.jl
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
function benchmark_caputo(tag::String, end_tag::String, step_size::Real)
SUITE["fracdiff"]["cpu"][tag][end_tag] = @benchmarkable fracdiff(x->x^2, 0.5, 1, step_size, CaputoDiethelm())
SUITE["fracdiff"]["cpu"][tag][end_tag] = @benchmarkable fracdiff(x->x^2, 0.5, 1, step_size, CaputoL1())
SUITE["fracdiff"]["cpu"][tag][end_tag] = @benchmarkable fracdiff(x->x^2, 0.5, 1, $step_size, CaputoDiethelm())
SUITE["fracdiff"]["cpu"][tag][end_tag] = @benchmarkable fracdiff(x->x^2, 0.5, 1, $step_size, CaputoL1())
end

function benchmark_RL(tag::String, end_tag::String, step_size::Real)
SUITE["fracdiff"]["cpu"][tag][end_tag] = @benchmarkable fracdiff(x->x^2, 0.5, 1, step_size, RLD())
SUITE["fracdiff"]["cpu"][tag][end_tag] = @benchmarkable fracdiff(x->x^2, 0.5, 1, step_size, RLDiffL1())
SUITE["fracdiff"]["cpu"][tag][end_tag] = @benchmarkable fracdiff(x->x^2, 0.5, 1, $step_size, RLD())
SUITE["fracdiff"]["cpu"][tag][end_tag] = @benchmarkable fracdiff(x->x^2, 0.5, 1, $step_size, RLDiffL1())
end
8 changes: 4 additions & 4 deletions bench/runbenchmarks.jl
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ const SUITE = BenchmarkGroup()
include("derivative.jl")

for step_size in (0.1, 0.01, 0.001)
benchmark_caputo("Caputo", "CaputoDiethelm", $step_size)
benchmark_caputo("Caputo", "CaputoL1", $step_size)
benchmark_RL("RiemannLiouville", "RLD", $step_size)
benchmark_RL("RiemannLiouville", "RLDiffL1", $step_size)
benchmark_caputo("Caputo", "CaputoDiethelm", step_size)
benchmark_caputo("Caputo", "CaputoL1", step_size)
benchmark_RL("RiemannLiouville", "RLD", step_size)
benchmark_RL("RiemannLiouville", "RLDiffL1", step_size)
end

BenchmarkTools.tune!(SUITE)
Expand Down

1 comment on commit 0744025

@github-actions
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Benchmark Results

Benchmark suite Current: 0744025 Previous: ce4583e Ratio
fracdiff/cpu/Caputo/CaputoL1 43481 ns
fracdiff/cpu/Caputo/CaputoDiethelm 43492 ns
fracdiff/cpu/RiemannLiouville/RLDiffL1 44744 ns
fracdiff/cpu/RiemannLiouville/RLD 44723 ns

This comment was automatically generated by workflow using github-action-benchmark.

Please sign in to comment.