-
-
Notifications
You must be signed in to change notification settings - Fork 77
/
BenchmarkMetric.js
54 lines (52 loc) · 1.68 KB
/
BenchmarkMetric.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
// Note: The correct value for the metric must always reside in indice 1 (second element) of the regex output array
const BenchmarkMetricRegex = {
LibertyDayTrader3: {
metrics: [
{
name: "Throughput",
regex: /<run runNo="5" runType="measure">[\s\S]*?<metric type="throughput">\n?[\s\S]*?([0-9]*[.]?[0-9]+)<\/data>/,
regexRepeat: false
}
]
},
LibertyStartup: {
metrics: [
{
name: "Footprint in kb",
outerRegex: /\sWarm\srun\s0\s([\s\S]*)/,
regex: /\sFootprint\s\(kb\)=(.*)\s/g,
regexRepeat: true
},
{
name: "Startup time in ms",
outerRegex: /\sWarm\srun\s0\s([\s\S]*)/,
regex: /\sStartup\stime:\s(.*)\s/g,
regexRepeat: true
}
]
},
ILOG_WODM: {
metrics: [
{
name: "Global Throughput",
regex: /Global Throughput.*?=\s?([0-9]*[.]?[0-9]+)/,
regexRepeat: false
}
]
},
SPECjbb2015: {
metrics: [
{
name: "max_jOPS",
regex: /RUN RESULT:[\s\S]*?max-jOPS\s?=\s?([0-9]*[.]?[0-9]+)[\s\S]*?critical-jOPS\s?=\s?[0-9]*[.]?[0-9]+[\s\S]*?\n/,
regexRepeat: false
},
{
name: "critical_jOPS",
regex: /RUN RESULT:[\s\S]*?max-jOPS\s?=\s?[0-9]*[.]?[0-9]+[\s\S]*?critical-jOPS\s?=\s?([0-9]*[.]?[0-9]+)[\s\S]*?\n/,
regexRepeat: false
}
]
}
}
module.exports = BenchmarkMetricRegex;