diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2016-09-26 13:25:13 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2016-09-27 10:03:00 +0100 |
commit | 823ee3e4887d7265afddff9aeafa7843566b3167 (patch) | |
tree | 7a40b15f99cbdd29f333791abe343821259cd6c8 /benchmarks/ezbench.d | |
parent | a23769cae6310436338a468ce93175d1c02ead1b (diff) |
benchmarks: Add prime_lookup microbenchmark
Just a silly benchmark to stress prime_fd_to_handle and
prime_handle_to_fd.
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'benchmarks/ezbench.d')
-rw-r--r-- | benchmarks/ezbench.d/prime_lookup.test | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/benchmarks/ezbench.d/prime_lookup.test b/benchmarks/ezbench.d/prime_lookup.test new file mode 100644 index 00000000..47bc3ede --- /dev/null +++ b/benchmarks/ezbench.d/prime_lookup.test @@ -0,0 +1,19 @@ +[ -e $IGT_BENCHMARKS/prime_lookup ] || return 1 +sudo -n true || return 1 + +for ndev in 1 4 16 64 256 1024; do + for nobj in 1 8 64 512 4096 32768; do + for nage in 1 8 64 512 4096 32768; do + name="prime:lookup:$dev:$obj:$nage" + test_name="$test_name $name" + eval "${name}_run() { sudo $IGT_BENCHMARKS/prime_lookup -d $ndev -o $nobj -a $nage ; }" + + name="prime:lookup:$dev:$obj:$nage:forked" + test_name="$test_name $name" + eval "${name}_run() { sudo $IGT_BENCHMARKS/prime_lookup -d $ndev -o $nobj -a $nage -f ; }" + done + done +done + +test_exec_time=3 +test_invert=1 |