Skip to content

Commit

Permalink
updating benchmarks.
Browse files Browse the repository at this point in the history
  • Loading branch information
weinbe58 committed Dec 22, 2023
1 parent 743a8f0 commit 528447e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/.vscode
**/**/**.cov

/Manifest.toml
Manifest.toml
/docs/build/
/docs/Manifest.toml
/docs/src/assets/main.css
Expand Down
1 change: 1 addition & 0 deletions benchmarks/Project.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
[deps]
BenchmarkTools = "6e4b80f9-dd63-53aa-95a3-0cdb28fa8baf"
DifferentialEquations = "0c46a032-eb83-5123-abaf-570d42b7fbaa"
DormandPrince = "5e45e72d-22b8-4dd0-9c8b-f96714864bcd"
6 changes: 3 additions & 3 deletions benchmarks/rabi-dormand-prince.jl
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
using BenchmarkTools
using DormandPrince:DP5Solver, core_integrator
using DormandPrince:DP5Solver, integrate

function fcn(x, y, f)
g(x) = 2.2*2π*sin(2π*x)
Expand All @@ -14,6 +14,6 @@ solver = DP5Solver(
ComplexF64[1.0, 0.0]
)

core_integrator(solver, 2π)
integrate(solver, 2π)

@benchmark core_integrator(clean_solver, 2π) setup=(clean_solver = DP5Solver(fcn, 0.0, ComplexF64[1.0, 0.0])) samples=10000 evals=5 seconds=500
@benchmark integrate(clean_solver, 2π) setup=(clean_solver = DP5Solver(fcn, 0.0, ComplexF64[1.0, 0.0])) samples=10000 evals=5 seconds=500

0 comments on commit 528447e

Please sign in to comment.