Skip to content

Instantly share code, notes, and snippets.

@LionsAd
Created October 25, 2012 12:25
Show Gist options
  • Select an option

  • Save LionsAd/3952295 to your computer and use it in GitHub Desktop.

Select an option

Save LionsAd/3952295 to your computer and use it in GitHub Desktop.
Benchmark vs. Baseline
#!/bin/bash
base=''
branch=master
[ -n "$1" ] && branch=$1
shift
basedir=$(dirname $0)
run_data=$($basedir/benchmark-branch.sh "$branch")
new_run=$(echo $run_data | cut -d'|' -f3)
while [ $# -gt 0 ]
do
base_run=$1
base_branch=$2
shift
shift
php xhprof-check.php "$base_run" "$new_run" "$base_branch..$branch"
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment