-
Notifications
You must be signed in to change notification settings - Fork 0
/
map_combine.txt
24 lines (24 loc) · 2.21 KB
/
map_combine.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
2023-06-11T21:40:16+08:00
Running ./bin/map_combine
Run on (8 X 2904 MHz CPU s)
CPU Caches:
L1 Data 32 KiB (x8)
L1 Instruction 32 KiB (x8)
L2 Unified 256 KiB (x8)
L3 Unified 16384 KiB (x1)
Load Average: 4.01, 4.18, 3.50
-------------------------------------------------------------------------------------------------------------------------------------
Benchmark Time CPU Iterations
-------------------------------------------------------------------------------------------------------------------------------------
BenchCombineMapInt<std::map<uint64_t, uint64_t>> 110 ns 110 ns 6340753
BenchTwiceMapInt<std::map<uint32_t, std::map<uint32_t, uint32_t>>> 268 ns 267 ns 2332804
BenchCombineMapInt<std::unordered_map<uint64_t, uint64_t>> 25.3 ns 25.2 ns 29342355
BenchTwiceMapInt<std::unordered_map<uint32_t, std::unordered_map<uint32_t, uint32_t>>> 77.8 ns 77.4 ns 10029931
BenchCombineMapInt<phmap::node_hash_map<uint64_t, uint64_t>> 12.8 ns 12.7 ns 58263749
BenchTwiceMapInt<phmap::node_hash_map<uint32_t, phmap::node_hash_map<uint32_t, uint32_t>>> 40.8 ns 40.6 ns 15889183
BenchCombineMapInt<phmap::flat_hash_map<uint64_t, uint64_t>> 11.0 ns 11.0 ns 79851867
BenchTwiceMapInt<phmap::flat_hash_map<uint32_t, phmap::flat_hash_map<uint32_t, uint32_t>>> 52.7 ns 52.5 ns 10000000
BenchCombineMapInt<tsl::ordered_map<uint64_t, uint64_t>> 26.7 ns 26.5 ns 25047945
BenchTwiceMapInt<tsl::ordered_map<uint32_t, tsl::ordered_map<uint32_t, uint32_t>>> 192 ns 191 ns 3687309
BenchCombineMapInt<tsl::vector_map<uint64_t, uint64_t>> 16.7 ns 16.6 ns 41368556
BenchTwiceMapInt<tsl::vector_map<uint32_t, tsl::vector_map<uint32_t, uint32_t>>> 61.0 ns 60.6 ns 10382521