Go back to Richel Bilderbeek's homepage.
Go back to Richel Bilderbeek's C++ page.
A simple benchmark that tests the speed of incrementing each 2D-vector's elements. It compares the speed of doing so using indexing versus using iterators.
Operating system(s) or programming environment(s)
Libraries used:
TEMPLATE = app |
#include <iostream> |
On a laptop (built in around 2011) with Lubuntu:
Time indexing: 2.88 Time iterator: 2.51 |
On the same laptop (built in around 2011) with Lubuntu using Wine:
Time indexing: 2.92 Time iterator: 2.58 |
Go back to Richel Bilderbeek's C++ page.
Go back to Richel Bilderbeek's homepage.
This page has been created by the tool CodeToHtml