On Wed, Oct 11, 2017 at 6:39 PM, Thorsten Ottosen via Boost < boost@lists.boost.org> wrote:
Den 10-10-2017 kl. 23:26 skrev Ion Gaztañaga via Boost:
On 10/10/2017 10:50, Thorsten Ottosen via Boost wrote:
Interesting points. Anyone willing to do some benchmark? ;-)
Here is one example comparing boost::vector<int> with devector<int>.
Here are my results of a similar test: Run on (8 X 3500 MHz CPU s) 2017-10-12 22:16:02 ------------------------------------------------------------- Benchmark Time CPU Iterations ------------------------------------------------------------- devector_insert/128 3837 ns 3818 ns 176825 devector_insert/512 23179 ns 23168 ns 31408 devector_insert/4096 980113 ns 978796 ns 708 devector_insert/32768 60061674 ns 59983258 ns 11 devector_insert/65536 237795405 ns 237520129 ns 3 cvector_insert/8 853 ns 855 ns 807388 cvector_insert/64 1988 ns 1989 ns 350874 cvector_insert/512 26493 ns 26494 ns 26234 cvector_insert/4096 1752987 ns 1750600 ns 399 cvector_insert/32768 108519299 ns 108385834 ns 6 cvector_insert/65536 436277805 ns 435846258 ns 2 Conditions of the measurement as posted earlier. Thanks, Benedek