We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 42d825f commit 33bdf9bCopy full SHA for 33bdf9b
driver.sh
@@ -1,6 +1,11 @@
1
#!/bin/bash
2
-BENCH_RUNS=5
3
-USE_PERF=1
+if [ -n $BENCH_FAST ]; then
+ BENCH_RUNS=1
4
+ BENCH_TARGET=not
5
+else
6
+ BENCH_RUNS=5
7
+ BENCH_TARGET=clang
8
+fi
9
10
SCRIPT_DIR=$(dirname `realpath "$0"`)
11
LLVM_SRC=${LLVM_SOURCE:-https://github.com/llvm/llvm-project}
@@ -87,7 +92,7 @@ bench () {
87
92
perf stat -r$BENCH_RUNS -o $b$log.txt \
88
93
-e instructions,cycles,L1-icache-misses,iTLB-misses \
89
94
--pre "ninja -C $RUNDIR clean" -- \
90
- ninja -C $RUNDIR clang
95
+ ninja -C $RUNDIR $BENCH_TARGET
91
96
done
97
}
98
0 commit comments