summaryrefslogtreecommitdiff
path: root/ubuntu/hackbench.yaml
diff options
context:
space:
mode:
authorMilosz Wasilewski <milosz.wasilewski@linaro.org>2014-10-28 15:21:59 +0000
committerMilosz Wasilewski <milosz.wasilewski@linaro.org>2014-10-29 13:39:13 +0000
commit9b97171eefaa798b1b46fe1cae7823130e201104 (patch)
tree5e8b9e241e0abcc117c7667070c6ef44f75ac695 /ubuntu/hackbench.yaml
parent069aae0e361571d928384d4493b8c0d0e690c534 (diff)
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 <milosz.wasilewski@linaro.org>
Diffstat (limited to 'ubuntu/hackbench.yaml')
-rw-r--r--ubuntu/hackbench.yaml53
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+)'