performance ​
Implementation level ​
| Type | Status |
|---|---|
| CML extraction template | |
| HTML5 representation |
Template attributes ​
| 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 ​
xml
<comment class="example.output" id="performance">
<module cmlx:templateRef="performance">
<scalar dataType="xsd:double" dictRef="l:nsperday">0.943</scalar>
<scalar dataType="xsd:double" dictRef="l:hourperns">25.441</scalar>
<scalar dataType="xsd:double" dictRef="l:timestepperns">21.837</scalar>
<scalar dataType="xsd:double" dictRef="l:cpuusage">99.0</scalar>
</module>
</comment>Template definition ​
xml
<record>Performance:{F,l:nsperday}ns/day,{F,l:hourperns}hours/ns,{F,l:timestepperns}timesteps/s</record>
<record>{F,l:cpuusage}% CPU use with.*</record>
<transform process="move" xpath=".//cml:scalar" to="." />
<transform process="delete" xpath=".//cml:list[count(*)=0]" />
<transform process="delete" xpath=".//cml:list[count(*)=0]" />