mtklein | 7ba39cb | 2014-11-24 12:39:59 -0800 | [diff] [blame] | 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 | |
kkinnunen | c77f6af | 2015-05-15 05:35:50 -0700 | [diff] [blame] | 9 | if [ "$BRANCH" = "$CLEAN" ]; then |
mtklein | 7ba39cb | 2014-11-24 12:39:59 -0800 | [diff] [blame] | 10 | echo "Comparing $BRANCH to itself." |
| 11 | exit 1 |
| 12 | fi |
| 13 | |
mtklein | 205de46 | 2015-01-23 10:39:55 -0800 | [diff] [blame] | 14 | if [ ! -f $CLEAN.log ]; then |
| 15 | git checkout $CLEAN |
mtklein | 24a592c | 2015-10-28 09:45:44 -0700 | [diff] [blame] | 16 | python gyp_skia >/dev/null |
mtklein | 205de46 | 2015-01-23 10:39:55 -0800 | [diff] [blame] | 17 | ninja -C out/Release nanobench |
| 18 | out/Release/nanobench $@ --samples $SAMPLES -v 2> $CLEAN.log |
| 19 | fi |
mtklein | 7ba39cb | 2014-11-24 12:39:59 -0800 | [diff] [blame] | 20 | |
| 21 | git checkout $BRANCH |
mtklein | 24a592c | 2015-10-28 09:45:44 -0700 | [diff] [blame] | 22 | python gyp_skia >/dev/null |
mtklein | 7ba39cb | 2014-11-24 12:39:59 -0800 | [diff] [blame] | 23 | ninja -C out/Release nanobench |
| 24 | out/Release/nanobench $@ --samples $SAMPLES -v 2> $BRANCH.log |
| 25 | |
mtklein | 24a592c | 2015-10-28 09:45:44 -0700 | [diff] [blame] | 26 | python bin/compare $CLEAN.log $BRANCH.log |