From 9b97171eefaa798b1b46fe1cae7823130e201104 Mon Sep 17 00:00:00 2001 From: Milosz Wasilewski Date: Tue, 28 Oct 2014 15:21:59 +0000 Subject: ubuntu: added definiton for hackbench (rt-tests) Added definition for running hackbench benchmark from rt-tests ubuntu package. Change-Id: Ie69e79feb1124b76dd898e77ca628efeced7511b Signed-off-by: Milosz Wasilewski --- ubuntu/hackbench.yaml | 53 +++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 53 insertions(+) create mode 100644 ubuntu/hackbench.yaml 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[^:]+):\s*(?P[0-9.]+)\s+(?P\w+)\s+(?P\w+)' -- cgit v1.2.3