-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathadt_map_order_find.txt
21 lines (21 loc) · 3.04 KB
/
adt_map_order_find.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
2023-06-11T21:30:37+08:00
Running ./bin/adt_map_order_find
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: 9.15, 5.13, 2.99
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Benchmark Time CPU Iterations
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
BenchOrderMapInt<std::map<int, int>> 181 ns 180 ns 3673513
BenchOrderMapInt<tsl::ordered_map<int, int>> 22.6 ns 22.5 ns 30125687
BenchOrderMapInt<tsl::ordered_map<int, int, std::hash<int>, std::equal_to<int>, std::allocator<std::pair<int, int>>, std::vector<std::pair<int, int>>>> 15.3 ns 15.3 ns 47342871
BenchOrderMapInt<absl::btree_map<int, int>> 83.1 ns 82.8 ns 8326644
BenchImmutableMapInt 146 ns 145 ns 4871663
BenchOrderMapString<std::map<std::string, int>> 1739 ns 1731 ns 400660
BenchOrderMapString<tsl::ordered_map<std::string, int>> 364 ns 362 ns 1681043
BenchOrderMapString<tsl::ordered_map<std::string, int, std::hash<std::string>, std::equal_to<std::string>, std::allocator<std::pair<std::string, int>>, std::vector<std::pair<std::string, int>>>> 247 ns 246 ns 2934248
BenchOrderMapString<absl::btree_map<std::string, int>> 774 ns 770 ns 1045238