summaryrefslogtreecommitdiff
path: root/ezbench.sh
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2015-07-20 12:31:18 +0100
committerMartin Peres <martin.peres@linux.intel.com>2015-07-22 21:10:15 +0300
commit9f2ee93f0b850862306edff6e875fef16f9156ed (patch)
treedd59252d08555a63eb1d47c2ffea427ac960fe3a /ezbench.sh
parent90627bc510b518ecd867e5d08d133888779b2144 (diff)
Save the per-run FPS values where we amalgamate
v2: (Martin Peres) - make benchmarks only output one fps reading per round - fix gen_report to ignore the per-run values
Diffstat (limited to 'ezbench.sh')
-rwxr-xr-xezbench.sh7
1 files changed, 4 insertions, 3 deletions
diff --git a/ezbench.sh b/ezbench.sh
index 2a5c264..80d84b6 100755
--- a/ezbench.sh
+++ b/ezbench.sh
@@ -254,12 +254,15 @@ do
error_logs=${fps_logs}.errors
# Run the benchmark
+ echo "FPS of '${testNames[$t]}' using commit ${commit}" > $fps_logs
printf "%28s: " ${testNames[$t]}
+
runFuncName=${testNames[$t]}_run
preHookFuncName=${testNames[$t]}_run_pre_hook
postHookFuncName=${testNames[$t]}_run_post_hook
+
callIfDefined $preHookFuncName
- fpsTest=$($runFuncName $rounds 2> $error_logs)
+ fpsTest=$($runFuncName $rounds $fps_logs 2>$error_logs)
callIfDefined $postHookFuncName
# delete the error file if it is empty
@@ -267,8 +270,6 @@ do
rm $error_logs
fi
- # Save the raw data
- echo "FPS of '${testNames[$t]}' using commit ${commit}" > $fps_logs
echo "$fpsTest" >> $fps_logs
# Process the data ourselves