Skip to content

Instantly share code, notes, and snippets.

  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save pavel-odintsov/5fc97731b63aee8c4f7927507c94c003 to your computer and use it in GitHub Desktop.
Performance tests for Boost on Ryzen 7 5800X
Loaded 183978 IPs into memory
std::map big endian
Total lookup time is 31 seconds
Million of lookup ops per second: 5.81285
Total scan time is 4 seconds
Million of full scan ops per second: 38.8132
Accumulator value to guarantee no optimisation tricks from compiler: 183978000000
std::map little endian
Total lookup time is 30 seconds
Million of lookup ops per second: 5.98506
Total scan time is 4 seconds
Million of full scan ops per second: 41.0831
Accumulator value to guarantee no optimisation tricks from compiler: 183978000000
std::unordered_map big endian
Total lookup time is 2 seconds
Million of lookup ops per second: 88.0013
Total scan time is 1 seconds
Million of full scan ops per second: 71.2046
Accumulator value to guarantee no optimisation tricks from compiler: 183978000000
std::unordered_map little endian
Total lookup time is 3 seconds
Million of lookup ops per second: 88.7251
Total scan time is 1 seconds
Million of full scan ops per second: 68.6266
Accumulator value to guarantee no optimisation tricks from compiler: 183978000000
boost::unordered_map big endian
Total lookup time is 3 seconds
Million of lookup ops per second: 84.1171
Total scan time is 1 seconds
Million of full scan ops per second: 137.578
Accumulator value to guarantee no optimisation tricks from compiler: 183978000000
boost::unordered_map little endian
Total lookup time is 2 seconds
Million of lookup ops per second: 83.1255
Total scan time is 1 seconds
Million of full scan ops per second: 162.819
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