mirror of
https://github.com/BlackMATov/flat.hpp.git
synced 2025-12-15 10:16:20 +07:00
fix bench scripts
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user