blob: a7b752cc674ee27ff69357fc1d3ce17630a36a9b [file] [log] [blame]
mtklein7ba39cb2014-11-24 12:39:59 -08001#!/bin/sh
2
3set -e
4
5BRANCH=$(git branch | grep \* | cut -d" " -f 2)
6CLEAN=${CLEAN-clean}
7SAMPLES=100
8
9if [ $BRANCH == $CLEAN ]; then
10 echo "Comparing $BRANCH to itself."
11 exit 1
12fi
13
14git checkout $CLEAN
15./gyp_skia >/dev/null
16ninja -C out/Release nanobench
17out/Release/nanobench $@ --samples $SAMPLES -v 2> $CLEAN.log
18
19git checkout $BRANCH
20./gyp_skia >/dev/null
21ninja -C out/Release nanobench
22out/Release/nanobench $@ --samples $SAMPLES -v 2> $BRANCH.log
23
24compare $CLEAN.log $BRANCH.log