Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
H
hep-workloads
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
HEP-Benchmarks
hep-workloads
Merge requests
!1003
New parser
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
New parser
new_parser
into
qa-build-cms-flowsim
Overview
0
Commits
1
Pipelines
0
Changes
2
Merged
Domenico Giordano
requested to merge
new_parser
into
qa-build-cms-flowsim
7 months ago
Overview
0
Commits
1
Pipelines
0
Changes
2
Expand
0
0
Merge request reports
Compare
qa-build-cms-flowsim
qa-build-cms-flowsim (base)
and
latest version
latest version
be291a82
1 commit,
7 months ago
2 files
+
5
−
10
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
2
Search (e.g. *.vue) (Ctrl+P)
cms/flowsim/cms-flowsim/parseResults.sh
+
4
−
9
Options
@@ -14,17 +14,12 @@ function parseResults(){
# #-----------------------
# Parse results (bash)
#-----------------------
echo
"[parseResults] bash parser starting"
# Parsing Event Throughput: xxxx ev/s
resJSON
=
`
grep
-h
'Total throughput:'
proc_
*
/out_
*
.log |
sed
-e
"s@Total throughput:
\s
*
\(
[ 0-9
\.
]*
\)\s
*objects/second@
\1
@"
|
awk
\
'BEGIN{sum=0;}{sum+=$1;} END{ printf "{\"wl-scores\": {\"flowsim\": %.4f}}", sum}'
||
(
echo
"{}"
;
return
1
)
`
echo
"[parseResults] python parser starting"
# Call the Python script
python3
${
parseResultsDir
}
/parseResults.py
"
$baseWDir
"
shstatus
=
$?
[
"
$shstatus
"
!=
"0"
]
&&
return
$shstatus
#-----------------------
# Generate summary
#-----------------------
echo
"[parseResults] generate report"
echo
"
$resJSON
"
>
$baseWDir
/parser_output.json
#-----------------------
# Return status
#-----------------------
Loading