1# This outputs a graph of time(N), the us it takes to execute N empty batches 2# performing the associated context operation each time. 3# e.g. 110 59 34 22 16 13 11 10 10 10 9 4 1.4 1.4 1.2 0.9 0.8 4# As a summary, print the number of nop/s (so that it matches the bigger is 5# better motif of fps). 6 7[ -e $IGT_BENCHMARKS/gem_exec_ctx ] || return 1 8sudo -n true || return 1 9 10for i in nop default switch create; do 11 name="gem:exec:ctx:$i:single" 12 test_name="$test_name $name" 13 eval "${name}_run() { sudo $IGT_BENCHMARKS/gem_exec_ctx -s -b $i -r \$1 ; }" 14 15 name="gem:exec:ctx:$i:forked" 16 test_name="$test_name $name" 17 eval "${name}_run() { sudo $IGT_BENCHMARKS/gem_exec_ctx -f -s -b $i -r \$1 ; }" 18 19 name="gem:exec:ctx:$i:continuous" 20 test_name="$test_name $name" 21 eval "${name}_run() { sudo $IGT_BENCHMARKS/gem_exec_ctx -b $i -r \$1 ; }" 22done 23 24test_exec_time=3 25test_invert=1 26