Skip to content

Commit

Permalink
Move benchmarks to own subproject
Browse files Browse the repository at this point in the history
Needed to decouple the MSRV of the main project from criterion
  • Loading branch information
vstroebel committed Oct 19, 2023
1 parent ebad819 commit 446ca66
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 5 deletions.
5 changes: 0 additions & 5 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,6 @@ std = []

[dev-dependencies]
jpeg-decoder = { version = "0.3", default-features = false }
#criterion = { version = "0.5", default-features = false, features = ["plotters", "cargo_bench_support"]}

[profile.dev]
opt-level = 1

[[bench]]
name = "encode"
harness = false
2 changes: 2 additions & 0 deletions criterion/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
/target
Cargo.lock
28 changes: 28 additions & 0 deletions criterion/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
[package]
name = "jpeg-encoder-bench"
version = "0.0.0"
authors = ["Volker Ströbel <[email protected]>"]
edition = "2021"
publish = false
license = "MIT OR Apache-2.0"

[workspace]
members = ["."]

[features]
default = ["std"]
simd = ["std"]
std = []

[dependencies]
jpeg-encoder = {path = "../"}

[dev-dependencies]
criterion = { version = "0.5", default-features = false, features = ["plotters", "cargo_bench_support"]}

[profile.dev]
opt-level = 1

[[bench]]
name = "encode"
harness = false
File renamed without changes.

0 comments on commit 446ca66

Please sign in to comment.