blob: 30e95346124e4d10d4aa23502dffe2adbcc5eee3 [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
kkinnunenc77f6af2015-05-15 05:35:50 -07009if [ "$BRANCH" = "$CLEAN" ]; then
mtklein7ba39cb2014-11-24 12:39:59 -080010 echo "Comparing $BRANCH to itself."
11 exit 1
12fi
13
mtklein205de462015-01-23 10:39:55 -080014if [ ! -f $CLEAN.log ]; then
15 git checkout $CLEAN
16 ./gyp_skia >/dev/null
17 platform_tools/android/bin/android_ninja -t Release nanobench
18 platform_tools/android/bin/android_run_skia -t Release nanobench $@ --skps /data/local/tmp/skps -i /data/local/tmp/resources --samples $SAMPLES -v > $CLEAN.log
19fi
mtklein7ba39cb2014-11-24 12:39:59 -080020
21git checkout $BRANCH
22./gyp_skia >/dev/null
23platform_tools/android/bin/android_ninja -t Release nanobench
24platform_tools/android/bin/android_run_skia -t Release nanobench $@ --skps /data/local/tmp/skps -i /data/local/tmp/resources --samples $SAMPLES -v > $BRANCH.log
25
kkinnunenc77f6af2015-05-15 05:35:50 -070026./bin/compare $CLEAN.log $BRANCH.log