tvl-depot/third_party/immer/tools/reproduce-paper-results.bash
Vincent Ambo 1213b086a1 merge(3p/immer): Subtree merge at 'ad3e3556d' as 'third_party/immer'
Change-Id: I9636a41ad44b4218293833fd3e9456d9b07c731b
2020-07-15 08:23:32 +01:00

25 lines
740 B
Bash
Executable file

#!/bin/bash
test -d build || mkdir -p build
cd build
cmake .. \
-DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_FLAGS="-O3 -march=native" \
-DCHECK_BENCHMARKS=1 \
-DBENCHMARK_PARAM="N:1000" -DBENCHMARK_SAMPLES="100"
make benchmarks -j1
ctest -R "benchmark/vector-paper*"
cmake ..\
-DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_FLAGS="-O3 -march=native" \
-DCHECK_BENCHMARKS=1 \
-DBENCHMARK_PARAM="N:100000" -DBENCHMARK_SAMPLES="20"
make benchmarks -j1
ctest -R "benchmark/vector-paper*"
cmake .. \
-DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_FLAGS="-O3 -march=native" \
-DCHECK_BENCHMARKS=1 \
-DBENCHMARK_PARAM="N:10000000" -DBENCHMARK_SAMPLES="3"
make benchmarks -j1
ctest -R "benchmark/vector-paper*"