We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8e8d21d commit 616761bCopy full SHA for 616761b
scripts/bench-compare.sh
@@ -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
15
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