Skip to content

performance ​

Implementation level ​

TypeStatus
CML extraction template
HTML5 representation

Template attributes ​

AttributeValue
sourceLAMMPS log
idperformance
pattern\s*Performance:.*
endPattern\s*
endOffset1
xml:basejob/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:&#123;F,l:nsperday&#125;ns/day,&#123;F,l:hourperns&#125;hours/ns,&#123;F,l:timestepperns&#125;timesteps/s</record>
<record>&#123;F,l:cpuusage&#125;% 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]" />