This repository collects benchmarks for std::experimental::simd
. The
benchmarks are a set of micro-benchmarks that try to capture latency and
throughput of individual operations on a stdx::simd
. For reference, the
same operation is also benchmarked on the simd::value_type
itself and on GCC
vector builtins (using [[gnu::vector_size(N)]]
).
- Set
$CXX
to the compiler you want use for the benchmarks. E.g.
export CXX=/usr/bin/g++-12
- Call
./run.sh --help
to learn how to invoke individual benchmarks. Therun.sh
script can be called from any working directory and will not change the working directory. This may be useful for testing uninstalled compilers.