summaryrefslogtreecommitdiff
path: root/benchmarks/ezbench.d/gem_mmap.test
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2016-04-03 16:45:22 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2016-04-03 18:32:07 +0100
commit1a501723029ac519aca0f7c633cda0133ac5141a (patch)
treef753bdcea71b89f09d4b84a1334220a23fde0f88 /benchmarks/ezbench.d/gem_mmap.test
parenteac26718e62a0c7cb5506f2cf188a4cac4794726 (diff)
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 <chris@chris-wilson.co.uk>
Diffstat (limited to 'benchmarks/ezbench.d/gem_mmap.test')
-rw-r--r--benchmarks/ezbench.d/gem_mmap.test14
1 files changed, 14 insertions, 0 deletions
diff --git a/benchmarks/ezbench.d/gem_mmap.test b/benchmarks/ezbench.d/gem_mmap.test
new file mode 100644
index 00000000..8d0d4788
--- /dev/null
+++ b/benchmarks/ezbench.d/gem_mmap.test
@@ -0,0 +1,14 @@
+[ -e $IGT_BENCHMARKS/gem_mmap ] || return 1
+sudo -n true || return 1
+
+for i in cpu gtt wc; do
+ for j in fault clear write read; do
+ for k in none x y; do
+ test_name="$test_name gem:mmap:$i:$j:$k"
+ eval "gem:mmap:${i}:${j}:${k}_run() { sudo $IGT_BENCHMARKS/gem_mmap -m $i -d $j -t $k -r \$1 ; } "
+
+ done
+ done
+done
+
+test_exec_time=2