diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2016-04-03 16:45:22 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2016-04-03 18:32:07 +0100 |
commit | 1a501723029ac519aca0f7c633cda0133ac5141a (patch) | |
tree | f753bdcea71b89f09d4b84a1334220a23fde0f88 /benchmarks/ezbench.d/gem_blt.test | |
parent | eac26718e62a0c7cb5506f2cf188a4cac4794726 (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_blt.test')
-rw-r--r-- | benchmarks/ezbench.d/gem_blt.test | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/benchmarks/ezbench.d/gem_blt.test b/benchmarks/ezbench.d/gem_blt.test new file mode 100644 index 00000000..bd05031d --- /dev/null +++ b/benchmarks/ezbench.d/gem_blt.test @@ -0,0 +1,34 @@ +test_exec_time=2 + +[ -e $IGT_BENCHMARKS/gem_blt ] || return 1 +sudo -n true || return 1 + +while read size batch label; do + name="gem:blt:copy:${label}" + test_name="$test_name $name" + eval "${name}_run() { sudo $IGT_BENCHMARKS/gem_blt -r \$1 -s $size -b $batch; }" +done<<SIZES +4096 1 4KiBx1 +4096 16 4KiBx16 +4096 64 4KiBx64 +4096 256 4KiBx256 +4096 1024 4KiBx1024 +131072 1 128KiBx1 +131072 16 128KiBx16 +131072 64 128KiBx64 +131072 256 128KiBx256 +131072 1024 128KiBx1024 +4194304 1 4MiBx1 +4194304 32 4MiBx32 +4194304 1024 4MiBx1024 +SIZES + +while read size label; do + name="gem:blt:copy:${label}:sync" + test_name="$test_name $name" + eval "${name}_run() { sudo $IGT_BENCHMARKS/gem_blt -S -r \$1 -s $size -b 1 ; }" +done<<SIZES +4096 4KiB +131072 128KiB +4194304 4MiB +SIZES |