Skip to content

Instantly share code, notes, and snippets.

@pavel-odintsov
Last active June 30, 2022 12:58
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/cb04bb005369949d942501a226b58247 to your computer and use it in GitHub Desktop.
Save pavel-odintsov/cb04bb005369949d942501a226b58247 to your computer and use it in GitHub Desktop.
Boost 1.79 vs Boost 1.80 little endian and big endian
1.78:
Loaded 183978 IPs into memory
std::map big endian
Total time is 60 seconds total ops: 183978000
Million of ops per second: 3.09965
std::map little endian
Total time is 58 seconds total ops: 183978000
Million of ops per second: 3.16205
std::unordered_map big endian
Total time is 7 seconds total ops: 183978000
Million of ops per second: 25.374
std::unordered_map little endian
Total time is 7 seconds total ops: 183978000
Million of ops per second: 26.4883
boost::unordered_map big endian
Total time is 9 seconds total ops: 183978000
Million of ops per second: 19.9851
boost::unordered_map little endian
Total time is 9 seconds total ops: 183978000
Million of ops per second: 20.2309
1.79:
Loaded 183978 IPs into memory
std::map big endian
Total time is 61 seconds total ops: 183978000
Million of ops per second: 3.00941
std::map little endian
Total time is 59 seconds total ops: 183978000
Million of ops per second: 3.11871
std::unordered_map big endian
Total time is 8 seconds total ops: 183978000
Million of ops per second: 25.3469
std::unordered_map little endian
Total time is 7 seconds total ops: 183978000
Million of ops per second: 26.3427
boost::unordered_map big endian
Total time is 11 seconds total ops: 183978000
Million of ops per second: 15.9766
boost::unordered_map little endian
Total time is 10 seconds total ops: 183978000
Million of ops per second: 19.4303
1.80:
Loaded 183978 IPs into memory
std::map big endian
Total time is 61 seconds total ops: 183978000
Million of ops per second: 3.01219
std::map little endian
Total time is 61 seconds total ops: 183978000
Million of ops per second: 3.04579
std::unordered_map big endian
Total time is 7 seconds total ops: 183978000
Million of ops per second: 25.2964
std::unordered_map little endian
Total time is 7 seconds total ops: 183978000
Million of ops per second: 26.2563
boost::unordered_map big endian
Total time is 6 seconds total ops: 183978000
Million of ops per second: 32.3792
boost::unordered_map little endian
Total time is 5 seconds total ops: 183978000
Million of ops per second: 33.5363
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment