performance
Type |
Status |
---|---|
CML extraction template |
|
HTML5 representation |
Attribute |
Value |
---|---|
source |
LAMMPS log |
id |
performance |
pattern |
\s*Performance:.* |
endPattern |
\s* |
endOffset |
1 |
xml:base |
job/performance.xml |
Input
Performance: 0.943 ns/day, 25.441 hours/ns, 21.837 timesteps/s
99.0% CPU use with 36 MPI tasks x 1 OpenMP threads
Output text
1<comment class="example.output" id="performance">
2 <module cmlx:templateRef="performance">
3 <scalar dataType="xsd:double" dictRef="l:nsperday">0.943</scalar>
4 <scalar dataType="xsd:double" dictRef="l:hourperns">25.441</scalar>
5 <scalar dataType="xsd:double" dictRef="l:timestepperns">21.837</scalar>
6 <scalar dataType="xsd:double" dictRef="l:cpuusage">99.0</scalar>
7 </module>
8 </comment>
Template definition
1<record>Performance:{F,l:nsperday}ns/day,{F,l:hourperns}hours/ns,{F,l:timestepperns}timesteps/s</record>
2<record>{F,l:cpuusage}% CPU use with.*</record>
3<transform process="move" xpath=".//cml:scalar" to="." />
4<transform process="delete" xpath=".//cml:list[count(*)=0]" />
5<transform process="delete" xpath=".//cml:list[count(*)=0]" />