Skip to content

Commit 22163c0

Browse files
committed
Adds tests, bechmarks and fuzzing code for the avx2 engine
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.
1 parent 1371051 commit 22163c0

File tree

11 files changed

+883
-4
lines changed

11 files changed

+883
-4
lines changed

Cargo.toml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,19 @@ rust-version = "1.47.0"
1616
name = "benchmarks"
1717
harness = false
1818

19+
[[bench]]
20+
name = "avx2benchmarks"
21+
harness = false
22+
required-features = ["avx2"]
23+
1924
[dev-dependencies]
2025
criterion = "0.3.4"
2126
rand = "0.6.1"
2227
structopt = "0.3.21"
2328
# test fixtures for engine tests
2429
rstest = "0.11.0"
2530
rstest_reuse = "0.1.3"
31+
lazy_static = "1.4.0"
2632

2733
[features]
2834
default = ["std"]

0 commit comments

Comments
 (0)