Skip to content

Instantly share code, notes, and snippets.

@kdy1
Created September 5, 2022 02:15
Show Gist options
  • Save kdy1/8591bcfe3b573ef74fbbf8ce9af3a124 to your computer and use it in GitHub Desktop.
Save kdy1/8591bcfe3b573ef74fbbf8ce9af3a124 to your computer and use it in GitHub Desktop.
Rust hash comparison
use ahash::RandomState;
use criterion::*;
use farmhash::FarmHasher;
use fnv::FnvBuildHasher;
use fxhash::FxBuildHasher;
use std::hash::{BuildHasher, BuildHasherDefault, Hash, Hasher};
fn generic_hash<K: Hash, B: BuildHasher>(key: &K, builder: &B) -> u64 {
let mut hasher = builder.build_hasher();
key.hash(&mut hasher);
hasher.finish()
}
fn create_string(len: usize) -> String {
let mut string = String::default();
for pos in 1..=len {
let c = (48 + (pos % 10) as u8) as char;
string.push(c);
}
string
}
fn compare_ahash(c: &mut Criterion) {
let test = "compare_ahash";
for num in &[1, 3, 7, 15, 31, 63, 127, 255, 511, 1023] {
let name = "string".to_owned() + &num.to_string();
let string = create_string(*num);
c.bench_with_input(BenchmarkId::new(test, &name), &string, |bencher, s| {
let builder = RandomState::new();
bencher.iter(|| black_box(generic_hash(s, &builder)));
});
}
}
fn compare_other<B: BuildHasher>(c: &mut Criterion, test: &str, builder: B) {
for num in &[1, 3, 7, 15, 31, 63, 127, 255, 511, 1023] {
let name = "string".to_owned() + &num.to_string();
let string = create_string(*num);
c.bench_with_input(BenchmarkId::new(test, &name), &string, |bencher, s| {
bencher.iter(|| black_box(generic_hash(&s, &builder)));
});
}
}
fn compare_farmhash(c: &mut Criterion) {
let builder = BuildHasherDefault::<FarmHasher>::default();
compare_other(c, "compare_farmhash", builder)
}
fn compare_fnvhash(c: &mut Criterion) {
let builder = FnvBuildHasher::default();
compare_other(c, "compare_fnvhash", builder)
}
fn compare_fxhash(c: &mut Criterion) {
let builder = FxBuildHasher::default();
compare_other(c, "compare_fxhash", builder)
}
fn compare_highway(c: &mut Criterion) {
let builder = highway::HighwayBuildHasher::default();
compare_other(c, "compare_highway", builder)
}
fn compare_metro(c: &mut Criterion) {
let builder = metrohash::MetroBuildHasher::default();
compare_other(c, "compare_metro", builder)
}
fn compare_t1ha(c: &mut Criterion) {
let builder = t1ha::T1haBuildHasher::default();
compare_other(c, "compare_t1ha", builder)
}
fn compare_sip13(c: &mut Criterion) {
let builder = BuildHasherDefault::<siphasher::sip::SipHasher13>::default();
compare_other(c, "compare_sip13", builder)
}
fn compare_sip24(c: &mut Criterion) {
let builder = BuildHasherDefault::<siphasher::sip::SipHasher24>::default();
compare_other(c, "compare_sip24", builder)
}
fn compare_wyhash(c: &mut Criterion) {
let builder = BuildHasherDefault::<wyhash::WyHash>::default();
compare_other(c, "compare_wyhash", builder)
}
fn compare_xxhash(c: &mut Criterion) {
let builder = twox_hash::RandomXxHashBuilder64::default();
compare_other(c, "compare_xxhash", builder)
}
criterion_main!(compare);
criterion_group!(
compare,
compare_ahash,
compare_farmhash,
compare_fnvhash,
compare_fxhash,
compare_highway,
compare_metro,
compare_t1ha,
compare_sip13,
compare_sip24,
compare_wyhash,
compare_xxhash,
);
Gnuplot not found, using plotters backend
compare_ahash/string1 time: [1.5540 ns 1.5548 ns 1.5557 ns]
Found 10 outliers among 100 measurements (10.00%)
5 (5.00%) high mild
5 (5.00%) high severe
compare_ahash/string3 time: [1.6161 ns 1.6176 ns 1.6195 ns]
Found 10 outliers among 100 measurements (10.00%)
3 (3.00%) high mild
7 (7.00%) high severe
compare_ahash/string7 time: [1.6161 ns 1.6184 ns 1.6214 ns]
Found 16 outliers among 100 measurements (16.00%)
1 (1.00%) low mild
7 (7.00%) high mild
8 (8.00%) high severe
compare_ahash/string15 time: [1.5852 ns 1.5859 ns 1.5867 ns]
Found 11 outliers among 100 measurements (11.00%)
8 (8.00%) high mild
3 (3.00%) high severe
compare_ahash/string31 time: [2.3321 ns 2.3344 ns 2.3368 ns]
Found 3 outliers among 100 measurements (3.00%)
1 (1.00%) high mild
2 (2.00%) high severe
compare_ahash/string63 time: [3.7242 ns 3.7285 ns 3.7346 ns]
Found 13 outliers among 100 measurements (13.00%)
3 (3.00%) high mild
10 (10.00%) high severe
compare_ahash/string127 time: [6.6975 ns 6.7066 ns 6.7176 ns]
Found 10 outliers among 100 measurements (10.00%)
4 (4.00%) high mild
6 (6.00%) high severe
compare_ahash/string255 time: [13.284 ns 13.292 ns 13.303 ns]
Found 16 outliers among 100 measurements (16.00%)
6 (6.00%) high mild
10 (10.00%) high severe
compare_ahash/string511 time: [28.272 ns 28.287 ns 28.305 ns]
Found 10 outliers among 100 measurements (10.00%)
1 (1.00%) low mild
3 (3.00%) high mild
6 (6.00%) high severe
compare_ahash/string1023
time: [56.415 ns 56.458 ns 56.510 ns]
Found 11 outliers among 100 measurements (11.00%)
7 (7.00%) high mild
4 (4.00%) high severe
compare_farmhash/string1
time: [25.499 ns 25.510 ns 25.522 ns]
Found 14 outliers among 100 measurements (14.00%)
8 (8.00%) high mild
6 (6.00%) high severe
compare_farmhash/string3
time: [25.414 ns 25.468 ns 25.531 ns]
Found 18 outliers among 100 measurements (18.00%)
4 (4.00%) high mild
14 (14.00%) high severe
compare_farmhash/string7
time: [26.168 ns 26.177 ns 26.188 ns]
Found 12 outliers among 100 measurements (12.00%)
4 (4.00%) high mild
8 (8.00%) high severe
compare_farmhash/string15
time: [27.258 ns 27.291 ns 27.330 ns]
Found 18 outliers among 100 measurements (18.00%)
6 (6.00%) high mild
12 (12.00%) high severe
compare_farmhash/string31
time: [60.830 ns 60.869 ns 60.909 ns]
Found 2 outliers among 100 measurements (2.00%)
1 (1.00%) high mild
1 (1.00%) high severe
compare_farmhash/string63
time: [95.625 ns 95.675 ns 95.729 ns]
Found 10 outliers among 100 measurements (10.00%)
1 (1.00%) low mild
6 (6.00%) high mild
3 (3.00%) high severe
compare_farmhash/string127
time: [108.01 ns 108.18 ns 108.44 ns]
Found 7 outliers among 100 measurements (7.00%)
5 (5.00%) high mild
2 (2.00%) high severe
compare_farmhash/string255
time: [142.68 ns 143.63 ns 144.66 ns]
compare_farmhash/string511
time: [165.25 ns 165.42 ns 165.59 ns]
Found 4 outliers among 100 measurements (4.00%)
1 (1.00%) high mild
3 (3.00%) high severe
compare_farmhash/string1023
time: [215.57 ns 216.13 ns 216.74 ns]
compare_fnvhash/string1 time: [892.75 ps 893.18 ps 893.66 ps]
Found 14 outliers among 100 measurements (14.00%)
6 (6.00%) high mild
8 (8.00%) high severe
compare_fnvhash/string3 time: [1.8635 ns 1.8645 ns 1.8657 ns]
Found 15 outliers among 100 measurements (15.00%)
7 (7.00%) high mild
8 (8.00%) high severe
compare_fnvhash/string7 time: [3.1057 ns 3.1072 ns 3.1088 ns]
Found 10 outliers among 100 measurements (10.00%)
3 (3.00%) high mild
7 (7.00%) high severe
compare_fnvhash/string15
time: [6.2758 ns 6.2778 ns 6.2802 ns]
Found 16 outliers among 100 measurements (16.00%)
4 (4.00%) low severe
1 (1.00%) low mild
5 (5.00%) high mild
6 (6.00%) high severe
compare_fnvhash/string31
time: [16.494 ns 16.503 ns 16.513 ns]
Found 18 outliers among 100 measurements (18.00%)
1 (1.00%) low severe
7 (7.00%) high mild
10 (10.00%) high severe
compare_fnvhash/string63
time: [44.159 ns 44.182 ns 44.213 ns]
Found 19 outliers among 100 measurements (19.00%)
3 (3.00%) low severe
1 (1.00%) low mild
7 (7.00%) high mild
8 (8.00%) high severe
compare_fnvhash/string127
time: [107.02 ns 107.07 ns 107.12 ns]
Found 18 outliers among 100 measurements (18.00%)
6 (6.00%) high mild
12 (12.00%) high severe
compare_fnvhash/string255
time: [266.23 ns 267.47 ns 268.63 ns]
Found 18 outliers among 100 measurements (18.00%)
10 (10.00%) high mild
8 (8.00%) high severe
compare_fnvhash/string511
time: [582.01 ns 582.93 ns 584.29 ns]
Found 14 outliers among 100 measurements (14.00%)
5 (5.00%) high mild
9 (9.00%) high severe
compare_fnvhash/string1023
time: [1.2175 µs 1.2185 µs 1.2198 µs]
Found 14 outliers among 100 measurements (14.00%)
5 (5.00%) high mild
9 (9.00%) high severe
compare_fxhash/string1 time: [1.0348 ns 1.0354 ns 1.0360 ns]
Found 17 outliers among 100 measurements (17.00%)
7 (7.00%) high mild
10 (10.00%) high severe
compare_fxhash/string3 time: [2.1731 ns 2.1741 ns 2.1753 ns]
Found 12 outliers among 100 measurements (12.00%)
2 (2.00%) high mild
10 (10.00%) high severe
compare_fxhash/string7 time: [2.1739 ns 2.1751 ns 2.1765 ns]
Found 20 outliers among 100 measurements (20.00%)
20 (20.00%) high severe
compare_fxhash/string15 time: [2.2096 ns 2.2111 ns 2.2130 ns]
Found 15 outliers among 100 measurements (15.00%)
7 (7.00%) high mild
8 (8.00%) high severe
compare_fxhash/string31 time: [3.4159 ns 3.4203 ns 3.4268 ns]
Found 9 outliers among 100 measurements (9.00%)
4 (4.00%) high mild
5 (5.00%) high severe
compare_fxhash/string63 time: [5.1910 ns 5.1929 ns 5.1951 ns]
Found 15 outliers among 100 measurements (15.00%)
1 (1.00%) low mild
7 (7.00%) high mild
7 (7.00%) high severe
compare_fxhash/string127
time: [10.083 ns 10.087 ns 10.092 ns]
Found 14 outliers among 100 measurements (14.00%)
1 (1.00%) low mild
7 (7.00%) high mild
6 (6.00%) high severe
compare_fxhash/string255
time: [24.175 ns 24.191 ns 24.212 ns]
Found 10 outliers among 100 measurements (10.00%)
3 (3.00%) high mild
7 (7.00%) high severe
compare_fxhash/string511
time: [60.076 ns 60.100 ns 60.126 ns]
Found 16 outliers among 100 measurements (16.00%)
1 (1.00%) low mild
6 (6.00%) high mild
9 (9.00%) high severe
compare_fxhash/string1023
time: [137.92 ns 138.17 ns 138.54 ns]
Found 18 outliers among 100 measurements (18.00%)
9 (9.00%) high mild
9 (9.00%) high severe
compare_highway/string1 time: [108.23 ns 108.40 ns 108.66 ns]
Found 14 outliers among 100 measurements (14.00%)
7 (7.00%) high mild
7 (7.00%) high severe
compare_highway/string3 time: [110.27 ns 110.33 ns 110.41 ns]
Found 16 outliers among 100 measurements (16.00%)
3 (3.00%) high mild
13 (13.00%) high severe
compare_highway/string7 time: [110.28 ns 110.32 ns 110.37 ns]
Found 11 outliers among 100 measurements (11.00%)
5 (5.00%) high mild
6 (6.00%) high severe
compare_highway/string15
time: [111.07 ns 111.12 ns 111.18 ns]
Found 12 outliers among 100 measurements (12.00%)
4 (4.00%) high mild
8 (8.00%) high severe
compare_highway/string31
time: [96.349 ns 96.395 ns 96.449 ns]
Found 10 outliers among 100 measurements (10.00%)
5 (5.00%) high mild
5 (5.00%) high severe
compare_highway/string63
time: [113.95 ns 114.00 ns 114.06 ns]
Found 13 outliers among 100 measurements (13.00%)
3 (3.00%) high mild
10 (10.00%) high severe
compare_highway/string127
time: [147.39 ns 147.50 ns 147.64 ns]
Found 15 outliers among 100 measurements (15.00%)
5 (5.00%) high mild
10 (10.00%) high severe
compare_highway/string255
time: [214.95 ns 215.19 ns 215.54 ns]
Found 13 outliers among 100 measurements (13.00%)
5 (5.00%) high mild
8 (8.00%) high severe
compare_highway/string511
time: [349.66 ns 349.82 ns 350.02 ns]
Found 12 outliers among 100 measurements (12.00%)
6 (6.00%) high mild
6 (6.00%) high severe
compare_highway/string1023
time: [619.50 ns 620.99 ns 622.79 ns]
Found 18 outliers among 100 measurements (18.00%)
8 (8.00%) high mild
10 (10.00%) high severe
compare_metro/string1 time: [8.3840 ns 8.3889 ns 8.3944 ns]
Found 12 outliers among 100 measurements (12.00%)
7 (7.00%) high mild
5 (5.00%) high severe
compare_metro/string3 time: [8.6988 ns 8.7142 ns 8.7337 ns]
Found 13 outliers among 100 measurements (13.00%)
4 (4.00%) high mild
9 (9.00%) high severe
compare_metro/string7 time: [8.0762 ns 8.0893 ns 8.1078 ns]
Found 10 outliers among 100 measurements (10.00%)
4 (4.00%) high mild
6 (6.00%) high severe
compare_metro/string15 time: [8.3862 ns 8.3929 ns 8.4010 ns]
Found 11 outliers among 100 measurements (11.00%)
3 (3.00%) high mild
8 (8.00%) high severe
compare_metro/string31 time: [10.683 ns 10.799 ns 10.948 ns]
Found 7 outliers among 100 measurements (7.00%)
7 (7.00%) high severe
compare_metro/string63 time: [16.827 ns 16.835 ns 16.845 ns]
Found 13 outliers among 100 measurements (13.00%)
4 (4.00%) high mild
9 (9.00%) high severe
compare_metro/string127 time: [17.534 ns 17.591 ns 17.651 ns]
Found 1 outliers among 100 measurements (1.00%)
1 (1.00%) high mild
compare_metro/string255 time: [18.652 ns 18.677 ns 18.703 ns]
Found 2 outliers among 100 measurements (2.00%)
1 (1.00%) high mild
1 (1.00%) high severe
compare_metro/string511 time: [38.902 ns 38.990 ns 39.082 ns]
Found 3 outliers among 100 measurements (3.00%)
2 (2.00%) high mild
1 (1.00%) high severe
compare_metro/string1023
time: [59.891 ns 59.977 ns 60.113 ns]
Found 10 outliers among 100 measurements (10.00%)
4 (4.00%) high mild
6 (6.00%) high severe
compare_t1ha/string1 time: [10.595 ns 10.607 ns 10.617 ns]
Found 26 outliers among 100 measurements (26.00%)
7 (7.00%) low severe
5 (5.00%) low mild
8 (8.00%) high mild
6 (6.00%) high severe
compare_t1ha/string3 time: [10.590 ns 10.606 ns 10.617 ns]
Found 19 outliers among 100 measurements (19.00%)
4 (4.00%) low severe
6 (6.00%) low mild
2 (2.00%) high mild
7 (7.00%) high severe
compare_t1ha/string7 time: [10.606 ns 10.617 ns 10.628 ns]
Found 25 outliers among 100 measurements (25.00%)
4 (4.00%) low severe
5 (5.00%) low mild
9 (9.00%) high mild
7 (7.00%) high severe
compare_t1ha/string15 time: [7.8674 ns 7.8717 ns 7.8764 ns]
Found 16 outliers among 100 measurements (16.00%)
6 (6.00%) high mild
10 (10.00%) high severe
compare_t1ha/string31 time: [7.9872 ns 7.9933 ns 8.0015 ns]
Found 16 outliers among 100 measurements (16.00%)
6 (6.00%) high mild
10 (10.00%) high severe
compare_t1ha/string63 time: [8.7080 ns 8.7828 ns 8.8630 ns]
compare_t1ha/string127 time: [11.312 ns 11.316 ns 11.321 ns]
Found 12 outliers among 100 measurements (12.00%)
3 (3.00%) high mild
9 (9.00%) high severe
compare_t1ha/string255 time: [18.280 ns 18.287 ns 18.295 ns]
Found 12 outliers among 100 measurements (12.00%)
1 (1.00%) low mild
4 (4.00%) high mild
7 (7.00%) high severe
compare_t1ha/string511 time: [35.360 ns 35.375 ns 35.393 ns]
Found 14 outliers among 100 measurements (14.00%)
6 (6.00%) high mild
8 (8.00%) high severe
compare_t1ha/string1023 time: [70.239 ns 70.266 ns 70.300 ns]
Found 14 outliers among 100 measurements (14.00%)
3 (3.00%) high mild
11 (11.00%) high severe
compare_sip13/string1 time: [7.0666 ns 7.0836 ns 7.1045 ns]
Found 17 outliers among 100 measurements (17.00%)
7 (7.00%) high mild
10 (10.00%) high severe
compare_sip13/string3 time: [7.3832 ns 7.4010 ns 7.4352 ns]
Found 14 outliers among 100 measurements (14.00%)
5 (5.00%) high mild
9 (9.00%) high severe
compare_sip13/string7 time: [7.3821 ns 7.3850 ns 7.3884 ns]
Found 16 outliers among 100 measurements (16.00%)
6 (6.00%) high mild
10 (10.00%) high severe
compare_sip13/string15 time: [9.0259 ns 9.0293 ns 9.0330 ns]
Found 13 outliers among 100 measurements (13.00%)
7 (7.00%) high mild
6 (6.00%) high severe
compare_sip13/string31 time: [11.783 ns 11.788 ns 11.794 ns]
Found 12 outliers among 100 measurements (12.00%)
5 (5.00%) high mild
7 (7.00%) high severe
compare_sip13/string63 time: [18.686 ns 18.727 ns 18.780 ns]
Found 19 outliers among 100 measurements (19.00%)
3 (3.00%) high mild
16 (16.00%) high severe
compare_sip13/string127 time: [36.010 ns 36.034 ns 36.060 ns]
Found 14 outliers among 100 measurements (14.00%)
1 (1.00%) low severe
1 (1.00%) low mild
4 (4.00%) high mild
8 (8.00%) high severe
compare_sip13/string255 time: [73.162 ns 73.234 ns 73.319 ns]
Found 19 outliers among 100 measurements (19.00%)
5 (5.00%) low severe
3 (3.00%) low mild
3 (3.00%) high mild
8 (8.00%) high severe
compare_sip13/string511 time: [149.72 ns 149.92 ns 150.17 ns]
Found 18 outliers among 100 measurements (18.00%)
5 (5.00%) low mild
5 (5.00%) high mild
8 (8.00%) high severe
compare_sip13/string1023
time: [303.06 ns 303.25 ns 303.46 ns]
Found 16 outliers among 100 measurements (16.00%)
6 (6.00%) high mild
10 (10.00%) high severe
compare_sip24/string1 time: [7.7407 ns 7.7439 ns 7.7480 ns]
Found 15 outliers among 100 measurements (15.00%)
1 (1.00%) high mild
14 (14.00%) high severe
compare_sip24/string3 time: [8.0469 ns 8.0538 ns 8.0631 ns]
Found 10 outliers among 100 measurements (10.00%)
3 (3.00%) high mild
7 (7.00%) high severe
compare_sip24/string7 time: [10.787 ns 10.793 ns 10.800 ns]
Found 12 outliers among 100 measurements (12.00%)
1 (1.00%) low mild
5 (5.00%) high mild
6 (6.00%) high severe
compare_sip24/string15 time: [13.481 ns 13.498 ns 13.519 ns]
Found 19 outliers among 100 measurements (19.00%)
7 (7.00%) high mild
12 (12.00%) high severe
compare_sip24/string31 time: [20.311 ns 20.330 ns 20.354 ns]
Found 17 outliers among 100 measurements (17.00%)
7 (7.00%) high mild
10 (10.00%) high severe
compare_sip24/string63 time: [36.609 ns 36.626 ns 36.645 ns]
Found 20 outliers among 100 measurements (20.00%)
9 (9.00%) high mild
11 (11.00%) high severe
compare_sip24/string127 time: [71.109 ns 71.175 ns 71.266 ns]
Found 14 outliers among 100 measurements (14.00%)
6 (6.00%) high mild
8 (8.00%) high severe
compare_sip24/string255 time: [140.34 ns 140.43 ns 140.54 ns]
Found 22 outliers among 100 measurements (22.00%)
8 (8.00%) high mild
14 (14.00%) high severe
compare_sip24/string511 time: [279.13 ns 279.27 ns 279.44 ns]
Found 13 outliers among 100 measurements (13.00%)
5 (5.00%) high mild
8 (8.00%) high severe
compare_sip24/string1023
time: [553.04 ns 554.04 ns 555.74 ns]
Found 18 outliers among 100 measurements (18.00%)
4 (4.00%) high mild
14 (14.00%) high severe
compare_wyhash/string1 time: [2.9032 ns 2.9083 ns 2.9140 ns]
Found 8 outliers among 100 measurements (8.00%)
2 (2.00%) high mild
6 (6.00%) high severe
compare_wyhash/string3 time: [3.0953 ns 3.0969 ns 3.0988 ns]
Found 13 outliers among 100 measurements (13.00%)
9 (9.00%) high mild
4 (4.00%) high severe
compare_wyhash/string7 time: [3.1561 ns 3.1576 ns 3.1594 ns]
Found 12 outliers among 100 measurements (12.00%)
4 (4.00%) high mild
8 (8.00%) high severe
compare_wyhash/string15 time: [4.3035 ns 4.3060 ns 4.3090 ns]
Found 7 outliers among 100 measurements (7.00%)
2 (2.00%) high mild
5 (5.00%) high severe
compare_wyhash/string31 time: [7.7882 ns 7.7924 ns 7.7971 ns]
Found 14 outliers among 100 measurements (14.00%)
5 (5.00%) high mild
9 (9.00%) high severe
compare_wyhash/string63 time: [9.0457 ns 9.0507 ns 9.0562 ns]
Found 9 outliers among 100 measurements (9.00%)
1 (1.00%) low mild
4 (4.00%) high mild
4 (4.00%) high severe
compare_wyhash/string127
time: [11.168 ns 11.174 ns 11.180 ns]
Found 15 outliers among 100 measurements (15.00%)
6 (6.00%) high mild
9 (9.00%) high severe
compare_wyhash/string255
time: [16.387 ns 16.471 ns 16.553 ns]
compare_wyhash/string511
time: [26.848 ns 26.896 ns 26.960 ns]
Found 10 outliers among 100 measurements (10.00%)
3 (3.00%) high mild
7 (7.00%) high severe
compare_wyhash/string1023
time: [47.496 ns 47.541 ns 47.599 ns]
Found 17 outliers among 100 measurements (17.00%)
7 (7.00%) high mild
10 (10.00%) high severe
compare_xxhash/string1 time: [7.7859 ns 7.8076 ns 7.8335 ns]
Found 18 outliers among 100 measurements (18.00%)
3 (3.00%) high mild
15 (15.00%) high severe
compare_xxhash/string3 time: [10.291 ns 10.317 ns 10.347 ns]
Found 15 outliers among 100 measurements (15.00%)
7 (7.00%) high mild
8 (8.00%) high severe
compare_xxhash/string7 time: [11.800 ns 11.816 ns 11.844 ns]
Found 12 outliers among 100 measurements (12.00%)
3 (3.00%) high mild
9 (9.00%) high severe
compare_xxhash/string15 time: [12.419 ns 12.424 ns 12.431 ns]
Found 14 outliers among 100 measurements (14.00%)
7 (7.00%) high mild
7 (7.00%) high severe
compare_xxhash/string31 time: [14.277 ns 14.283 ns 14.289 ns]
Found 13 outliers among 100 measurements (13.00%)
1 (1.00%) high mild
12 (12.00%) high severe
compare_xxhash/string63 time: [14.590 ns 14.596 ns 14.604 ns]
Found 13 outliers among 100 measurements (13.00%)
6 (6.00%) high mild
7 (7.00%) high severe
compare_xxhash/string127
time: [16.457 ns 16.464 ns 16.472 ns]
Found 16 outliers among 100 measurements (16.00%)
7 (7.00%) high mild
9 (9.00%) high severe
compare_xxhash/string255
time: [22.164 ns 22.175 ns 22.189 ns]
Found 9 outliers among 100 measurements (9.00%)
3 (3.00%) high mild
6 (6.00%) high severe
compare_xxhash/string511
time: [36.688 ns 36.754 ns 36.877 ns]
Found 15 outliers among 100 measurements (15.00%)
4 (4.00%) high mild
11 (11.00%) high severe
compare_xxhash/string1023
time: [70.078 ns 70.180 ns 70.300 ns]
Found 15 outliers among 100 measurements (15.00%)
4 (4.00%) high mild
11 (11.00%) high severe
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment