-
Notifications
You must be signed in to change notification settings - Fork 0
/
map_erase_order.txt
22 lines (22 loc) · 1.57 KB
/
map_erase_order.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
2023-06-11T21:31:20+08:00
Running ./bin/map_erase_order
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: 6.47, 4.98, 3.05
-------------------------------------------------------------------------------------------------------
Benchmark Time CPU Iterations
-------------------------------------------------------------------------------------------------------
BenchEraseOrderMapInt<std::map<int, int>> 429 ns 426 ns 1345408
BenchEraseOrderMapInt<tsl::ordered_map<int, int>> 144044 ns 143101 ns 5574
BenchEraseOrderMapInt<tsl::vector_map<int, int>> 141744 ns 140825 ns 5169
BenchEraseOrderMapInt<absl::btree_map<int, int>> 174 ns 173 ns 3787355
BenchEraseOrderMapInt<phmap::btree_map<int, int>> 173 ns 172 ns 4172180
BenchEraseOrderMapString<std::map<std::string, int>> 1487 ns 1477 ns 509167
BenchEraseOrderMapString<tsl::ordered_map<std::string, int>> 485005 ns 494292 ns 1239
BenchEraseOrderMapString<tsl::vector_map<std::string, int>> 493809 ns 501584 ns 1512
BenchEraseOrderMapString<absl::btree_map<std::string, int>> 1316 ns 1332 ns 516181
BenchEraseOrderMapString<phmap::btree_map<std::string, int>> 1596 ns 1611 ns 445881