Microbenchmarking with Google Benchmark
For a detailed explanation on benchnmarking with google benchmark see my blog post.
Building
Preliminary
To start, the repository has to be cloned:
$ git clone https://github.com/RobertCrupa/microbenchmarking.git
$ cd microbenchmarking
Building and running the test cases
To create build folder and run tests:
$ cmake -S . -B build
$ cmake --build build
$ cd build && ./benchmark