The provided benchmark script is using Python's timeit
module for benchmarking.
I noticed that I was getting very different results between runs even with the same compiler, so I first switched to pyperf
to attempt to get more stable results.
I am not sure if there is a Python API for pyperf, so I started by writing a small bash wrapper for benchmark
: