about summary refs log tree commit diff
path: root/tools/reproduce-paper-results.bash
blob: 0ee2b98c34062bef2ded324b63e21b3339e900c5 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#!/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*"