-
-
Notifications
You must be signed in to change notification settings - Fork 337
Generic logic to get get and store benchmark metric #6355
Copy link
Copy link
Open
Labels
Description
Extend based on #6339, make checkDacapoH2Metric() and archiveDacapoH2Metric() generic.
On second thought, it may be better to have a separate script (i.e., Python - benchmarkMetric.py) to handle this.
- In
benchmarkMetric.py, it contains a generic functioncheckMetric().checkMetric()takes job console output and readsbenchmarkMetric.jsonand runs each regex, and stores into one JSON output.
benchmarkMetric.json example:
[
{
"Benchmark": "dacapo-eclipse",
"metrics":
{
"dacapo-eclipse" : [
{"regex": "DaCapo.*eclipse\\sPASSED\\sin\\s(\\d*\\.?\\d*)\\smsec"},
{"higherbetter": true},
{"units": "msec"}
]
}
},
{
"Benchmark": "dacapo-h2",
"metrics":
{
"dacapo-h2" : [
{"regex": "DaCapo.*h2\\sPASSED\\sin\\s(\\d*\\.?\\d*)\\smsec"},
{"higherbetter": true},
{"units": "msec"}
]
}
}
]
Note: Backslashes must be double-escaped (\\) in JSON strings.
Output: JSON file as specified in #6327. For example:
[
{
"Benchmark": "dacapo-eclipse",
"metrics":
{
"dacapo-eclipse" : [
{"value": "123456"},
{"higherbetter": true},
{"units": "msec"}
]
}
},
{
"Benchmark": "dacapo-h2",
"metrics":
{
"dacapo-h2" : [
{"value": "4689"},
{"higherbetter": true},
{"units": "msec"}
]
}
}
]
related: #6327
top level issue: #6268
@smlambert @LongyuZhang if I missed anything, please feel free to update.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Type
Projects
Status
In Progress