blob: d9e0fd3bfb6ae5c5373ea7b93a6742d855626a33 [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
16platform_tools/android/bin/android_ninja -t Release nanobench
17platform_tools/android/bin/android_run_skia -t Release nanobench $@ --skps /data/local/tmp/skps -i /data/local/tmp/resources --samples $SAMPLES -v > $CLEAN.log
18
19git checkout $BRANCH
20./gyp_skia >/dev/null
21platform_tools/android/bin/android_ninja -t Release nanobench
22platform_tools/android/bin/android_run_skia -t Release nanobench $@ --skps /data/local/tmp/skps -i /data/local/tmp/resources --samples $SAMPLES -v > $BRANCH.log
23
24compare $CLEAN.log $BRANCH.log