Home
last modified time | relevance | path

Searched refs:fnvhash (Results 1 – 1 of 1) sorted by relevance

/external/rust/crates/ahash/tests/
Dbench.rs27 fn fnvhash<H: Hash>(b: &H) -> u64 { in fnvhash() function
157 ParameterizedBenchmark::new("u8", |b, &s| b.iter(|| black_box(fnvhash(s))), &U8_VALUES), in bench_fnv()
161 ParameterizedBenchmark::new("u16", |b, &s| b.iter(|| black_box(fnvhash(s))), &U16_VALUES), in bench_fnv()
165 ParameterizedBenchmark::new("u32", |b, &s| b.iter(|| black_box(fnvhash(s))), &U32_VALUES), in bench_fnv()
169 ParameterizedBenchmark::new("u64", |b, &s| b.iter(|| black_box(fnvhash(s))), &U64_VALUES), in bench_fnv()
173 ParameterizedBenchmark::new("u128", |b, &s| b.iter(|| black_box(fnvhash(s))), &U128_VALUES), in bench_fnv()
177 … ParameterizedBenchmark::new("string", |b, s| b.iter(|| black_box(fnvhash(s))), gen_strings()), in bench_fnv()