on master help sign in
make output msgs more specific when comparing commits
3b80308Harendra Kumar
bench.sh+6−4
@@ -151,13 +151,15 @@ run_benches_comparing() {
151 # XXX Should be where the current branch is forked from master
151 # XXX Should be where the current branch is forked from master
152 BASE="$CANDIDATE^"
152 BASE="$CANDIDATE^"
153 fi
153 fi
154+ echo "Comparing baseline commit [$BASE] with candidate [$CANDIDATE]"
154− echo "Checking out base commit for benchmarking"
155+ echo "Checking out base commit [$BASE] for benchmarking"
155− git checkout "$BASE" || die "Checkout of base commit failed"
156+ git checkout "$BASE" || die "Checkout of base commit [$BASE] failed"
156
157
157 run_benches "$bench_list"
158 run_benches "$bench_list"
158
159
159− echo "Checking out candidate commit for benchmarking"
160+ echo "Checking out candidate commit [$CANDIDATE] for benchmarking"
161+ git checkout "$CANDIDATE" || \
160− git checkout "$CANDIDATE" || die "Checkout of candidate commit failed"
162+ die "Checkout of candidate [$CANDIDATE] commit failed"
161
163
162 run_benches "$bench_list"
164 run_benches "$bench_list"
163 # XXX reset back to the original commit
165 # XXX reset back to the original commit