From 72d22ee5e5ded1b6f9e032de7ef0a7a6c9954ad4 Mon Sep 17 00:00:00 2001 From: Dominik Maier Date: Sat, 6 Nov 2021 18:23:10 +0100 Subject: [PATCH] remove unused const hashing mode (#358) --- libafl/Cargo.toml | 2 +- libafl/benches/hash_speeds.rs | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/libafl/Cargo.toml b/libafl/Cargo.toml index 2edffd251d..e5939a8cc1 100644 --- a/libafl/Cargo.toml +++ b/libafl/Cargo.toml @@ -38,7 +38,7 @@ rustc_version = "0.4" criterion = "0.3" # Benchmarking ahash = "0.7" # another hash fxhash = "0.2.1" # yet another hash -xxhash-rust = { version = "0.8.2", features = ["xxh3", "const_xxh3"] } # xxh3 hashing for rust +xxhash-rust = { version = "0.8.2", features = ["xxh3"] } # xxh3 hashing for rust serde_json = "1.0.60" num_cpus = "1.0" # cpu count, for llmp example serial_test = "0.5" diff --git a/libafl/benches/hash_speeds.rs b/libafl/benches/hash_speeds.rs index 577224c677..7d6a9df3ef 100644 --- a/libafl/benches/hash_speeds.rs +++ b/libafl/benches/hash_speeds.rs @@ -1,7 +1,7 @@ //! Compare the speed of rust hash implementations use std::hash::Hasher; -use xxhash_rust::const_xxh3; +//use xxhash_rust::const_xxh3; use xxhash_rust::xxh3; use criterion::{black_box, criterion_group, criterion_main, Criterion}; @@ -17,14 +17,14 @@ fn criterion_benchmark(c: &mut Criterion) { c.bench_function("xxh3", |b| { b.iter(|| xxh3::xxh3_64_with_seed(black_box(&bench_vec), 0)) }); - c.bench_function("const_xxh3", |b| { + /*c.bench_function("const_xxh3", |b| { b.iter(|| const_xxh3::xxh3_64_with_seed(black_box(&bench_vec), 0)) - }); + });*/ c.bench_function("ahash", |b| { b.iter(|| { let mut hasher = ahash::AHasher::new_with_keys(123, 456); hasher.write(black_box(&bench_vec)); - hasher.finish(); + hasher.finish() }) }); c.bench_function("fxhash", |b| {