Skip to content

Commit 616761b

Browse files
committed
Add bench-compare script
1 parent 8e8d21d commit 616761b

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

scripts/bench-compare.sh

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
#~/bin/bash
2+
set -e
3+
branch=$(git rev-parse --abbrev-ref HEAD)
4+
SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
5+
cd $SCRIPT_DIR/..
6+
if [[ -z "${GBENCH}" ]]; then
7+
echo "Please set env variable GBENCH and re run"
8+
exit 1
9+
fi
10+
11+
compare=$GBENCH/tools/compare.py
12+
if [ ! -f $compare ]; then
13+
echo "Unable to locate $GBENCH/tools/compare.py"
14+
exit 1
15+
fi
16+
17+
meson setup --warnlevel 0 --buildtype plain builddir-${branch}
18+
cd builddir-${branch}
19+
ninja
20+
$compare filters ./benchexe $1 $2

0 commit comments

Comments
 (0)