diff options
author | Anders Roxell <anders.roxell@linaro.org> | 2013-10-04 16:42:36 +0200 |
---|---|---|
committer | Linaro Code Review <review@review.linaro.org> | 2013-10-24 07:18:44 +0000 |
commit | 1ef4f1dd009d980736ae901e45ae03f860109236 (patch) | |
tree | d52c137099d0f86e2d37c15c82dae2cc5af50ad3 /openembedded/scripts | |
parent | 2132db61391a194ce1ba68741b8db9a5365943c8 (diff) |
added lmbench and generalize hackbench_parse script
1. move hackbench_parse.py to common/scripts/min_max_avg_parsh.sh
and try to generalize it so lmbench can use it as well.
2. add new lmbench.yaml file to OE
Change-Id: I9ce50fb5830d2f1a6f45ca043f93da70f32041b1
Signed-off-by: Anders Roxell <anders.roxell@linaro.org>
Diffstat (limited to 'openembedded/scripts')
-rwxr-xr-x | openembedded/scripts/hackbench_parse.py | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/openembedded/scripts/hackbench_parse.py b/openembedded/scripts/hackbench_parse.py deleted file mode 100755 index 9c31434..0000000 --- a/openembedded/scripts/hackbench_parse.py +++ /dev/null @@ -1,25 +0,0 @@ -#!/usr/bin/python - -import re -import sys -from numpy import * - -values = [] - -r = re.compile("Time:\s(?P<measurement>\d+\.\d*)") -f = open(sys.argv[1], "r") -for line in f.readlines(): - search = r.search(line) - if search: - values.append(float(search.group('measurement'))) - -# Usually the first value is inexplicably high -values.pop(0) - -np_array = array(values) - -format = "%-16s%-16s%-16s%-16s" -print format % ("hackbench_min:", str(min(np_array)), "seconds", "pass") -print format % ("hakcbench_max:", str(max(np_array)), "seconds", "pass") -print format % ("hackbench_avg:", str(mean(np_array)), "seconds", "pass") -print format % ("hackbench_mdn:", str(median(np_array)), "seconds", "pass") |