OLD | NEW |
(Empty) | |
| 1 #!/bin/sh |
| 2 |
| 3 set -e |
| 4 |
| 5 BRANCH=$(git branch | grep \* | cut -d" " -f 2) |
| 6 CLEAN=${CLEAN-clean} |
| 7 SAMPLES=100 |
| 8 |
| 9 if [ $BRANCH == $CLEAN ]; then |
| 10 echo "Comparing $BRANCH to itself." |
| 11 exit 1 |
| 12 fi |
| 13 |
| 14 git checkout $CLEAN |
| 15 ./gyp_skia >/dev/null |
| 16 platform_tools/android/bin/android_ninja -t Release nanobench |
| 17 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 |
| 18 |
| 19 git checkout $BRANCH |
| 20 ./gyp_skia >/dev/null |
| 21 platform_tools/android/bin/android_ninja -t Release nanobench |
| 22 platform_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 |
| 24 compare $CLEAN.log $BRANCH.log |
OLD | NEW |