From 1a501723029ac519aca0f7c633cda0133ac5141a Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Sun, 3 Apr 2016 16:45:22 +0100 Subject: benchmarks: Include my ezbench test runners Just a set of scripts to integrate these benchmarks with ezbench. They need to be revised to plugin into latest version of ezbench. Signed-off-by: Chris Wilson --- benchmarks/ezbench.d/gem_exec_ctx.test | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 benchmarks/ezbench.d/gem_exec_ctx.test (limited to 'benchmarks/ezbench.d/gem_exec_ctx.test') diff --git a/benchmarks/ezbench.d/gem_exec_ctx.test b/benchmarks/ezbench.d/gem_exec_ctx.test new file mode 100644 index 00000000..85b2a5ab --- /dev/null +++ b/benchmarks/ezbench.d/gem_exec_ctx.test @@ -0,0 +1,21 @@ +# This outputs a graph of time(N), the us it takes to execute N empty batches +# performing the associated context operation each time. +# e.g. 110 59 34 22 16 13 11 10 10 10 9 4 1.4 1.4 1.2 0.9 0.8 +# As a summary, print the number of nop/s (so that it matches the bigger is +# better motif of fps). + +[ -e $IGT_BENCHMARKS/gem_exec_ctx ] || return 1 +sudo -n true || return 1 + +for i in nop default switch create; do + name="gem:exec:ctx:$i:single" + test_name="$test_name $name" + eval "${name}_run() { sudo $IGT_BENCHMARKS/gem_exec_ctx -s -b $i -r \$1 ; }" + + name="gem:exec:ctx:$i:continuous" + test_name="$test_name $name" + eval "${name}_run() { sudo $IGT_BENCHMARKS/gem_exec_ctx -b $i -r \$1 ; }" +done + +test_exec_time=3 +test_invert=1 -- cgit v1.2.3