-
Notifications
You must be signed in to change notification settings - Fork 0
/
hash.txt
34 lines (34 loc) · 3.41 KB
/
hash.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
2023-06-16T17:32:33+08:00
Running ./bin/hash
Run on (16 X 3417.59 MHz CPU s)
CPU Caches:
L1 Data 48 KiB (x16)
L1 Instruction 32 KiB (x16)
L2 Unified 2048 KiB (x16)
L3 Unified 30720 KiB (x1)
Load Average: 4.03, 2.07, 1.24
--------------------------------------------------------------------------------------------------------------------------------
Benchmark Time CPU Iterations
--------------------------------------------------------------------------------------------------------------------------------
BM_StdHash 3.99 ns 3.99 ns 177157020
BM_StdHashFnv 11.2 ns 11.2 ns 52011496
BM_CityHash 3.09 ns 3.09 ns 227718981
BM_Murmur 12.0 ns 12.0 ns 57978399
BM_WyHash 2.49 ns 2.49 ns 280685701
BM_XXHash 7.56 ns 7.56 ns 113406338
BM_AbseilHash 4.20 ns 4.20 ns 166159521
BM_DefaultHash 17.3 ns 17.3 ns 40045365
BenchUnOrderMapString<std::unordered_map<std::string, int>> 75.6 ns 75.6 ns 9152216
BenchUnOrderMapString<std::unordered_map<std::string, int, Hasher>> 56.0 ns 56.0 ns 11657975
BenchUnOrderMapString<ska::flat_hash_map<std::string, int>> 78.1 ns 78.1 ns 10339110
BenchUnOrderMapString<ska::flat_hash_map<std::string, int, Hasher>> 53.7 ns 53.7 ns 10000000
BenchUnOrderMapString<phmap::flat_hash_map<std::string, int>> 75.3 ns 75.3 ns 12172824
BenchUnOrderMapString<phmap::flat_hash_map<std::string, int, Hasher>> 54.9 ns 54.9 ns 10906096
BenchUnOrderMapString<absl::flat_hash_map<std::string, int>> 61.3 ns 61.3 ns 9935361
BenchUnOrderMapString<absl::flat_hash_map<std::string, int, absl::Hash<std::string>>> 72.9 ns 72.9 ns 11196972
BenchUnOrderMapString<absl::flat_hash_map<std::string, int, Hasher>> 44.3 ns 44.3 ns 13566906
BenchUnOrderMapString<tsl::robin_map<std::string, int>> 64.3 ns 64.3 ns 10605748
BenchUnOrderMapString<tsl::robin_map<std::string, int, Hasher>> 46.7 ns 46.7 ns 15158812
BenchFlatMapString<butil::FlatMap<std::string, int>> 104 ns 104 ns 6383535
BenchFlatMapString<butil::FlatMap<std::string, int, std::hash<std::string>>> 102 ns 102 ns 5492385
BenchFlatMapString<butil::FlatMap<std::string,int, Hasher>> 60.8 ns 60.8 ns 11443397