-
Notifications
You must be signed in to change notification settings - Fork 0
/
adt_map_order_range.txt
20 lines (20 loc) · 2.4 KB
/
adt_map_order_range.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
2023-06-11T21:31:03+08:00
Running ./bin/adt_map_order_range
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: 7.45, 5.05, 3.02
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Benchmark Time CPU Iterations
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
BenchRangeOrderMapInt<std::map<int, int>> 355218 ns 355163 ns 1499
BenchRangeOrderMapInt<tsl::ordered_map<int, int>> 31022 ns 30986 ns 23833
BenchRangeOrderMapInt<tsl::ordered_map<int, int, std::hash<int>, std::equal_to<int>, std::allocator<std::pair<int, int>>, std::vector<std::pair<int, int>>>> 16687 ns 16659 ns 40812
BenchRangeOrderMapInt<absl::btree_map<int, int>> 63728 ns 63589 ns 12089
BenchRangeImmutableMapInt 1806390 ns 1801256 ns 383
BenchRangeOrderMapString<std::map<std::string, int>> 2004466 ns 1997956 ns 375
BenchRangeOrderMapString<tsl::ordered_map<std::string, int>> 61099 ns 60860 ns 8392
BenchRangeOrderMapString<absl::btree_map<std::string, int>> 135262 ns 134742 ns 5431