-
Notifications
You must be signed in to change notification settings - Fork 0
/
map_erase_order.txt
22 lines (22 loc) · 1.58 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-16T17:49:50+08:00
Running ./bin/map_erase_order
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.06, 4.03, 3.19
-------------------------------------------------------------------------------------------------------
Benchmark Time CPU Iterations
-------------------------------------------------------------------------------------------------------
BenchEraseOrderMapInt<std::map<int, int>> 179 ns 179 ns 3954165
BenchEraseOrderMapInt<tsl::ordered_map<int, int>> 58777 ns 58777 ns 13196
BenchEraseOrderMapInt<tsl::vector_map<int, int>> 54995 ns 54991 ns 10000
BenchEraseOrderMapInt<absl::btree_map<int, int>> 126 ns 126 ns 5558037
BenchEraseOrderMapInt<phmap::btree_map<int, int>> 122 ns 122 ns 5831004
BenchEraseOrderMapString<std::map<std::string, int>> 759 ns 759 ns 978630
BenchEraseOrderMapString<tsl::ordered_map<std::string, int>> 316582 ns 316578 ns 2426
BenchEraseOrderMapString<tsl::vector_map<std::string, int>> 308624 ns 308619 ns 2362
BenchEraseOrderMapString<absl::btree_map<std::string, int>> 570 ns 570 ns 1289131
BenchEraseOrderMapString<phmap::btree_map<std::string, int>> 655 ns 655 ns 1137814