fix bench scripts

This commit is contained in:
BlackMATov
2021-01-12 22:36:26 +07:00
parent 22fe34c2b8
commit 0b0d4c8723
7 changed files with 95 additions and 28 deletions

View File

@@ -1,8 +1,18 @@
#!/bin/bash
set -e
DIR="$( cd "$( dirname "${BASH_SOURCE}" )" && pwd )"
BUILD_DIR=`dirname "$BASH_SOURCE"`/../build/release
cd $BUILD_DIR
ROOT_DIR="${DIR}/.."
BUILD_DIR="${ROOT_DIR}/build/unbench"
./unbench/flat.hpp.unbench --benchmark_filter=_map_lookup --benchmark_format=csv > benchmark_map_lookup.csv
../../scripts/bench_drawer.py -f benchmark_map_lookup.csv
mkdir -p "${BUILD_DIR}"
(cd "${BUILD_DIR}" && cmake "${ROOT_DIR}" -DCMAKE_BUILD_TYPE=Release\
-DBUILD_WITH_UNBENCH=ON\
-DBUILD_WITH_UNTESTS=OFF)
(cd "${BUILD_DIR}" && cmake --build .)
(cd "${BUILD_DIR}" && ./unbench/flat.hpp.unbench\
--benchmark_filter=_map_lookup\
--benchmark_format=csv > benchmark_map_lookup.csv)
(cd "${BUILD_DIR}" && "${ROOT_DIR}/scripts/bench_drawer.py" -f benchmark_map_lookup.csv)