Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pavel-odintsov/ab5a6ccaca9bf60cd21d7454c8e383aa to your computer and use it in GitHub Desktop.
Save pavel-odintsov/ab5a6ccaca9bf60cd21d7454c8e383aa to your computer and use it in GitHub Desktop.
AMD Ryzen 5 3600 6-Core Processor test with Absl flat_hash_map and node_hash_map
Loaded 183978 IPs into memory
std::map big endian
Total lookup time is 59 seconds
Million of lookup ops per second: 3.11381
Total scan time is 15 seconds
Million of full scan ops per second: 8.43543
Accumulator value to guarantee no optimisation tricks from compiler: 183978000000
std::map little endian
Total lookup time is 58 seconds
Million of lookup ops per second: 3.17993
Total scan time is 16 seconds
Million of full scan ops per second: 8.41425
Accumulator value to guarantee no optimisation tricks from compiler: 183978000000
std::unordered_map big endian
Total lookup time is 7 seconds
Million of lookup ops per second: 25.2589
Total scan time is 11 seconds
Million of full scan ops per second: 12.3272
Bucket number: 172933
Accumulator value to guarantee no optimisation tricks from compiler: 183978000000
std::unordered_map little endian
Total lookup time is 7 seconds
Million of lookup ops per second: 26.3319
Total scan time is 10 seconds
Million of full scan ops per second: 12.5218
Bucket number: 172933
Accumulator value to guarantee no optimisation tricks from compiler: 183978000000
boost::unordered_map big endian
Total lookup time is 6 seconds
Million of lookup ops per second: 33.1351
Total scan time is 3 seconds
Million of full scan ops per second: 34.8746
Bucket number: 196613
Accumulator value to guarantee no optimisation tricks from compiler: 183978000000
boost::unordered_map little endian
Total lookup time is 6 seconds
Million of lookup ops per second: 33.8842
Total scan time is 3 seconds
Million of full scan ops per second: 35.0709
Bucket number: 196613
Accumulator value to guarantee no optimisation tricks from compiler: 183978000000
absl::flat_hash_map little endian
Total lookup time is 5 seconds
Million of lookup ops per second: 33.599
Total scan time is 1 seconds
Million of full scan ops per second: 101.966
Bucket number: 0
Accumulator value to guarantee no optimisation tricks from compiler: 183978000000
absl::flat_hash_map big endian
Total lookup time is 6 seconds
Million of lookup ops per second: 33.687
Total scan time is 1 seconds
Million of full scan ops per second: 102.885
Bucket number: 0
Accumulator value to guarantee no optimisation tricks from compiler: 183978000000
absl::node_hash_map little endian
Total lookup time is 5 seconds
Million of lookup ops per second: 38.5048
Total scan time is 1 seconds
Million of full scan ops per second: 94.7877
Bucket number: 0
Accumulator value to guarantee no optimisation tricks from compiler: 183978000000
node_hash_map big endian
Total lookup time is 5 seconds
Million of lookup ops per second: 38.5005
Total scan time is 1 seconds
Million of full scan ops per second: 96.219
Bucket number: 0
Accumulator value to guarantee no optimisation tricks from compiler: 183978000000
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment