diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2010-04-07 21:57:22 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2010-04-07 22:50:15 +0100 |
commit | f5f64317874a3faa4f47688848a499b1e8836cf6 (patch) | |
tree | 082cc395adb7cba171b1d2757e38873620486027 /perf/cairo-perf-diff | |
parent | 70ca0040fda77b6865c20c94c1b7deaa6e63c481 (diff) | |
download | cairo-f5f64317874a3faa4f47688848a499b1e8836cf6.tar.gz |
perf: Switch between micro and trace benchmarks for cairo-perf-diff
Diffstat (limited to 'perf/cairo-perf-diff')
-rwxr-xr-x | perf/cairo-perf-diff | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/perf/cairo-perf-diff b/perf/cairo-perf-diff index 436f149ea..5700cf258 100755 --- a/perf/cairo-perf-diff +++ b/perf/cairo-perf-diff @@ -52,14 +52,14 @@ END exit 1 } -benchmarks="cairo-perf-micro" +benchmark="cairo-perf-micro" # First, pull off any known options while true; do case $1 in -f|--force) force_cairo_perf="true";; -h|--html) html_output="$2"; shift ;; - -t|--trace) benchmarks="${benchmarks} cairo-perf-trace";; + -t|--trace) benchmark="cairo-perf-trace";; *) break;; esac @@ -178,7 +178,7 @@ build() { (cd boilerplate && make libcairoboilerplate.la) cd perf - make cairo-perf cairo-perf-trace + make ${benchmark} } # Usage: run_cairo_perf_if_not_cached <rev> <suffix> @@ -214,9 +214,7 @@ run_cairo_perf_if_not_cached() { } echo "Running \"cairo-perf $CAIRO_PERF_OPTIONS\" against $rev. Results will be cached in:" - for cmd in $benchmarks; do - (./$cmd $CAIRO_PERF_OPTIONS || echo "*** Performance test crashed") >> $perf - done + {./$benchmark $CAIRO_PERF_OPTIONS || echo "*** Performance test crashed"} >> $perf cd $owd } |