skia2/bin/c
mtklein 24a592c2ef Make bin/c and bin/compare work on Windows.
- Call python explicitly.
  - Drop numpy dependency (on numpy.mean.... come on.)
  - Make scipy dependency optional.

Depends on https://codereview.chromium.org/1419073003 to really work.

BUG=skia:

Doesn't change code.
NOTRY=true

Review URL: https://codereview.chromium.org/1416833004
2015-10-28 09:45:44 -07:00

27 lines
563 B
Bash
Executable File

#!/bin/sh
set -e
BRANCH=$(git branch | grep \* | cut -d" " -f 2)
CLEAN=${CLEAN-clean}
SAMPLES=100
if [ "$BRANCH" = "$CLEAN" ]; then
echo "Comparing $BRANCH to itself."
exit 1
fi
if [ ! -f $CLEAN.log ]; then
git checkout $CLEAN
python gyp_skia >/dev/null
ninja -C out/Release nanobench
out/Release/nanobench $@ --samples $SAMPLES -v 2> $CLEAN.log
fi
git checkout $BRANCH
python gyp_skia >/dev/null
ninja -C out/Release nanobench
out/Release/nanobench $@ --samples $SAMPLES -v 2> $BRANCH.log
python bin/compare $CLEAN.log $BRANCH.log