-
-
Notifications
You must be signed in to change notification settings - Fork 578
Traffic Counters Structures performance evaluation
Pavel Odintsov edited this page Jun 19, 2022
·
5 revisions
Just build FastNetMon Community that way:
cmake .. -DENABLE_CUSTOM_BOOST_BUILD=FALSE -DDO_NOT_USE_SYSTEM_LIBRARIES_FOR_BUILD=FALSE -DBUILD_TESTS=ON
make -j
And then run test suite:
./traffic_structures_tests
Test machine:
AMD Ryzen 7 5800X 8-Core Processor, 32G RAM
Results:
Element size: 216 bytes
Total structure size: 2059 Mbytes
std::map: 7.0 mega ops per second
std::map precreated: 9.8 mega ops per second
boost::unordered_map: 12.9 mega ops per second
boost::container::flat_map with preallocated elements: 12.4 mega ops per second
std::unordered_map C++11: 28.7 mega ops per second
std::unordered_map C++11 preallocated buckets: 50.5 mega ops per second
std::unordered_map C++11 precreated elements: 86.3 mega ops per second
std::vector preallocated: 160.0 mega ops per second
C array preallocated: 157.1 mega ops per second