(C++) benchmark

June 10, 2019 ยท View on GitHub

A benchmark is a simple execution speed test. Note that benchmarking is a complex subject, including the way to interpret the results.

  • Add one to all elements of a std::vector
  • Array versus std::vector
  • Indexing versus iterators on 2d std::vectors
  • Float versus double
  • Inline versus non-inline
  • Different ways to add 1 to each element of a std::vector
  • Compare the speed of local versus global variables