From aea95cb8b1eef994fb714bb4f00c214347e53452 Mon Sep 17 00:00:00 2001 From: "wu.zhihui" Date: Sat, 11 Mar 2017 00:29:41 +0800 Subject: parse benchmark result from logfile - Put all the regex rules in regex.yaml. - According to benchmark name, we can find related regexes. Change-Id: Ic15bd1c77b525be3751011fa94d582da077b0345 Signed-off-by: wu.zhihui (cherry picked from commit dc92e5ae19dd026bf6a14c1e0d2b9c50497845d5) --- qtip/collector/parser/regex.yaml | 85 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 85 insertions(+) create mode 100644 qtip/collector/parser/regex.yaml (limited to 'qtip/collector/parser/regex.yaml') diff --git a/qtip/collector/parser/regex.yaml b/qtip/collector/parser/regex.yaml new file mode 100644 index 00000000..397f8973 --- /dev/null +++ b/qtip/collector/parser/regex.yaml @@ -0,0 +1,85 @@ +############################################################################## +# Copyright (c) 2017 ZTE Corporation and others. +# +# All rights reserved. This program and the accompanying materials +# are made available under the terms of the Apache License, Version 2.0 +# which accompanies this distribution, and is available at +# http://www.apache.org/licenses/LICENSE-2.0 +############################################################################## + +dhrystone: + - filename: dhrystone + grep: + - '^(?P\d+)\sCPUs in system; running 1 parallel copy of tests$' + - '.+\srunning (?P\d+) parallel copy of tests$' + - '.+\srunning (?P\d+) parallel copies of tests$' + - '^System Benchmarks Index Score \(Partial Only\)\s+(?P\d+\.\d)$' +whetstone: + - filename: whetstone + grep: + - '^(?P\d+)\sCPUs in system; running 1 parallel copy of tests$' + - '.+\srunning (?P\d+) parallel copy of tests$' + - '.+\srunning (?P\d+) parallel copies of tests$' + - '^System Benchmarks Index Score \(Partial Only\)\s+(?P\d+\.\d)$' +dpi: + - filename: dpi_dump.txt + grep: + - |- + ^\s+nDPI throughput:.+?(?P\d+.\d+)\sM\spps.+ + ?(?P\d+.\d+)\sGb\/sec +ramspeed: + - filename: Intmem + grep: + - '^INTEGER\s+BatchRun\s+Copy:\s+?(?P\d+\.\d+)\sMB/s$' + - '^INTEGER\s+BatchRun\s+Scale:\s+?(?P\d+\.\d+)\sMB/s$' + - '^INTEGER\s+BatchRun\s+Add:\s+?(?P\d+\.\d+)\sMB/s$' + - '^INTEGER\s+BatchRun\s+Triad:\s+?(?P\d+\.\d+)\sMB/s$' + - '^INTEGER\s+BatchRun\s+AVERAGE:\s+?(?P\d+\.\d+)\sMB/s$' + - filename: Floatmem + grep: + - '^FL-POINT\s+BatchRun\s+Copy:\s+?(?P\d+\.\d+)\sMB/s$' + - '^FL-POINT\s+BatchRun\s+Scale:\s+?(?P\d+\.\d+)\sMB/s$' + - '^FL-POINT\s+BatchRun\s+Add:\s+?(?P\d+\.\d+)\sMB/s$' + - '^FL-POINT\s+BatchRun\s+Triad:\s+?(?P\d+\.\d+)\sMB/s$' + - '^FL-POINT\s+BatchRun\s+AVERAGE:\s+?(?P\d+\.\d+)\sMB/s$' +ssl: + - filename: RSA_dump + grep: + - |- + ^rsa\s+512\sbits\s.+ + ?(?P\d+\.\d)\s+ + ?(?P\d+\.\d)$ + - |- + ^rsa\s+1024\sbits\s.+ + ?(?P\d+\.\d)\s+ + ?(?P\d+\.\d)$ + - |- + ^rsa\s+2048\sbits\s.+ + ?(?P\d+\.\d)\s+ + ?(?P\d+\.\d)$ + - |- + ^rsa\s+4096\sbits\s.+ + ?(?P\d+\.\d)\s+ + ?(?P\d+\.\d)$ + - filename: AES-128-CBC_dump + grep: + - |- + ^aes-128-cbc\s+ + ?(?P\d+\.\w+)\s+ + ?(?P\d+\.\w+)\s+ + ?(?P\d+\.\w+)\s+ + ?(?P\d+\.\w+)\s+ + ?(?P\d+\.\w+)$ +sysinfo: + - filename: top.log + grep: + - 'Cpu\(s\):.+?(?P\d+\.\d)\sid' + - filename: inxi.log + grep: + - '.+\s+Host:\s+(?P.+)\sKernel' + - '.+\sMemory:\s+(?P.+MB)\s' + - '^CPU\(s\):\s+(?P.+)' + - '.+\sDistro:\s+(?P.+)' + - '.+\sKernel:\s+(?P.+)\sConsole' + - '.+\s+HDD Total Size:\s+(?P.+)\s' + - '.+\sproduct:\s+(?P.+)\sv' \ No newline at end of file -- cgit 1.2.3-korg