File tree Expand file tree Collapse file tree 1 file changed +34
-0
lines changed
Expand file tree Collapse file tree 1 file changed +34
-0
lines changed Original file line number Diff line number Diff line change 1+ #! /usr/bin/env bash
2+
3+ set -o errexit
4+ set -o nounset
5+ set -o pipefail
6+
7+ if ! [ -x $( which gtime) ]
8+ then
9+ echo " It appears you're missing gtime, its available on brew as 'gnu-time'." ;
10+ exit 1;
11+ fi
12+
13+ export RUST_LOG=" OFF"
14+ OUTPUT_FILE=" output.txt"
15+ echo " Writing results to $OUTPUT_FILE "
16+
17+ # Clear output file
18+ > $OUTPUT_FILE
19+
20+ echo " Building binaries with mimalloc"
21+ cargo build --bin tpch --bin clickbench --release --features mimalloc
22+
23+ for i in " tpch 1 22" " clickbench 0 42" ; do
24+ set -- $i
25+ benchmark=$1
26+ range_start=$2
27+ range_end=$3
28+
29+ for q in $( seq $range_start $range_end ) ; do
30+ echo " running $benchmark q $q " ;
31+
32+ gtime -f %M target/release/$benchmark -q $q -i 2 --formats vortex 2>> $OUTPUT_FILE
33+ done
34+ done
You can’t perform that action at this time.
0 commit comments