diff options
-rw-r--r-- | ubuntu/hackbench.yaml | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/ubuntu/hackbench.yaml b/ubuntu/hackbench.yaml new file mode 100644 index 0000000..ac482be --- /dev/null +++ b/ubuntu/hackbench.yaml @@ -0,0 +1,53 @@ +metadata: + name: hackbench + format: "Lava-Test-Shell Test Definition 1.0" + description: "Test hackbench (rt-tests version)." + maintainer: + - milosz.wasilewski@linaro.org + scope: + - functional + - virtualization + os: + - ubuntu + devices: + - arndale + - vexpress-tc2 + +install: + deps: + - rt-tests + - python-numpy + - coreutils + +params: + TARGET: 'host' + # Sends the data via a pipe instead of the socket (default) + USE_PIPE: 'false' + # Sets the amount of data to send in each message + DATASIZE: 100 + # How many messages each sender/receiver pair should send + LOOPS: 100 + # Defines how many groups of senders and receivers should be started + GRPS: 10 + # Defines how many file descriptors each child should use. Note that the + # effective number will be twice the amount you set here, as the sender + # and receiver children will each open the given amount of file descriptors. + FDS: 20 + # Each sender/receiver child will be a POSIX thread of the parent. + # The default is to run in process mode (-P) + USE_THREADS: 'false' + # Number of cycles hackbench is called (for loop repetitions) + REPEAT: 1000 + +run: + steps: + - OPTIONS="-s $DATASIZE -l $LOOPS -g $GRPS -f $FDS" + - if [ "$USE_PIPE" != "false" ]; then OPTIONS=${OPTIONS}" -p"; fi + - if [ "$USE_THREADS" != "false" ]; then OPTIONS=${OPTIONS}" -T"; fi + - echo $OPTIONS + - i=1 + - while [ $i -le $REPEAT ]; do timeout 10s hackbench ${OPTIONS} | tee -a hackbench_res_$TARGET.txt; true $(( i++ )); done + - ./common/scripts/min_max_avg_parse.py hackbench_res_$TARGET.txt "Time:" "Seconds" + +parse: + pattern: '^(?P<test_case_id>[^:]+):\s*(?P<measurement>[0-9.]+)\s+(?P<units>\w+)\s+(?P<result>\w+)' |