Skip to content

Commit

Permalink
refactor: move benchmark suite to a separate crate
Browse files Browse the repository at this point in the history
This removes the (dev-) dependency on GSL wrapper in gomez itself. The
benchmarks were also ported to use divan instead of criterion.
  • Loading branch information
pnevyk committed Nov 12, 2023
1 parent 7b5a64b commit d7a92b4
Show file tree
Hide file tree
Showing 4 changed files with 343 additions and 296 deletions.
8 changes: 0 additions & 8 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,3 @@ num-traits = "0.2"
thiserror = "1"
log = "0.4"
getset = "0.1"

[dev-dependencies]
criterion = "0.3"
gsl-wrapper = { path = "gsl-wrapper" }

[[bench]]
name = "solvers"
harness = false
288 changes: 0 additions & 288 deletions benches/solvers.rs

This file was deleted.

13 changes: 13 additions & 0 deletions gomez-bench/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
[package]
name = "gomez-bench"
version = "0.1.0"
edition = "2021"

[dependencies]
divan = "0.1.2"
gomez = { path = ".." }
gsl-wrapper = { path = "../gsl-wrapper" }

[[bench]]
name = "main"
harness = false
Loading

0 comments on commit d7a92b4

Please sign in to comment.