summaryrefslogtreecommitdiff
path: root/tests.d/gem/gem_exec_nop.test
blob: d3ad7c6bfb1dc7517df401e66d1f11e097c6728e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
test_name=gem:exec:nop
test_exec_time=18

# This outputs a graph of time(N), the us it takes to execute N empty batches.
# 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).
#
# Ideally we want to run this per ring,
#	gem_exec_nop:rcs, gem_exec_nop:bcs, gem_exec_nop:vcs
# though for the time being just one will suffice

[ -e $IGT_BENCHMARKS/gem_exec_nop ] || return 1
sudo -n true || return 1

gem:exec:nop_run() { sudo $IGT_BENCHMARKS/gem_exec_nop -e 1 -r $1; }
gem:exec:nop_process() { bc -l <<< "1000000 / ${@: -1}"; }