about summary refs log tree commit diff
path: root/third_party/immer/tools/reproduce-paper-results.bash
diff options
context:
space:
mode:
Diffstat (limited to 'third_party/immer/tools/reproduce-paper-results.bash')
-rwxr-xr-xthird_party/immer/tools/reproduce-paper-results.bash25
1 files changed, 25 insertions, 0 deletions
diff --git a/third_party/immer/tools/reproduce-paper-results.bash b/third_party/immer/tools/reproduce-paper-results.bash
new file mode 100755
index 000000000000..0ee2b98c3406
--- /dev/null
+++ b/third_party/immer/tools/reproduce-paper-results.bash
@@ -0,0 +1,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*"