Last updated 21-11-2016 v1.05
The test setup is a Haswell-class Xeon (E3-1241) on an Intel motherboard, 16GB ECC ram, running MSVC 2015 update 3 x64 as compiler. Build settings are x64 release, "/O2 /Oi /Ot /Oy /GL".
Click images or hover over to see results at linear scale instead
Click images or hover over to see results at linear scale instead
Click images or hover over to see results at linear scale instead
Simply put, plf::stack out-performs both std::stack (std::deque) and std::vector under MSVC 2015 once both push and pop time are taken into account, except for char with more than 1000 elements, where vector has a performance advantage. We can also see that the larger the stored type is, the greater the performance advantage is.
Contact:
plf:: library and this site Copyright (c) 2021, Matthew Bentley