Skip to content

mattkretz/simd-benchmarks

Repository files navigation

stdx::simd Benchmarks

CI DOI fair-software.eu

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)]]).

Usage

  1. Set $CXX to the compiler you want use for the benchmarks. E.g.
export CXX=/usr/bin/g++-12
  1. Call ./run.sh --help to learn how to invoke individual benchmarks. The run.sh script can be called from any working directory and will not change the working directory. This may be useful for testing uninstalled compilers.