Skip to content

Commit

Permalink
Adds tests, bechmarks and fuzzing code for the avx2 engine
Browse files Browse the repository at this point in the history
This adds the AVX2Encoder engine to the existing benchmarks and tests and introduces three new fuzzing targets:
- roundtrip_avx
- decode_random_avx
which behave very similar to the non-avx versions, and
- roundtrip_avx_equivalent
Which checks that the avx2 engine and the DEFAULT_ENGINE produce the same data both ways.
  • Loading branch information
dequbed committed Jan 19, 2022
1 parent 1371051 commit 22163c0
Show file tree
Hide file tree
Showing 11 changed files with 883 additions and 4 deletions.
6 changes: 6 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,19 @@ rust-version = "1.47.0"
name = "benchmarks"
harness = false

[[bench]]
name = "avx2benchmarks"
harness = false
required-features = ["avx2"]

[dev-dependencies]
criterion = "0.3.4"
rand = "0.6.1"
structopt = "0.3.21"
# test fixtures for engine tests
rstest = "0.11.0"
rstest_reuse = "0.1.3"
lazy_static = "1.4.0"

[features]
default = ["std"]
Expand Down
Loading

0 comments on commit 22163c0

Please sign in to comment.