sitespeed.io/lib/plugins/html/templates/url/webpagetest/run.pug

42 lines
1.2 KiB
Plaintext

a#webpagetest
h2 WebPageTest
- var wpt = pageInfo.data.webpagetest.run;
each view in ['firstView', 'repeatView']
- var data = wpt[view];
if data
h4 #{view}
.responsive
table
caption Metrics
tr
th TTFB
th Render
th firstPaint
th loadTime
th SpeedIndex
th fullyLoaded
th connections
tr
td.number(data-title='TTFB') #{data.TTFB}
td.number(data-title='render') #{data.render}
td.number(data-title='firstPaint') #{data.firstPaint}
td.number(data-title='loadTime') #{data.loadTime}
td.number(data-title='SpeedIndex') #{data.SpeedIndex}
td.number(data-title='fullyLoaded') #{data.fullyLoaded}
td.number(data-title='connections') #{data.connections}
if (data.userTimes)
table
caption User timings
tr
each value, key in data.userTimes
th #{key}
tr
each value, key in data.userTimes
td.number(data-title= key) #{value}
h5 Waterfall
img.u-max-full-width(src= data.images.waterfall, alt='Waterfall view')
h5 Connection view
img.u-max-full-width(src= data.images.connectionView, alt='Connnection view')