Skip to content

Instantly share code, notes, and snippets.

@axemclion
Last active March 7, 2017 23:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save axemclion/8230632 to your computer and use it in GitHub Desktop.
Save axemclion/8230632 to your computer and use it in GitHub Desktop.
Performance Data using browser-perf for old and new versions of http://www.html5rocks.com

Tabular Data

MetricsOld VersionNew Version
total_texture_upload_time0.0350.07
PaintSetup_avg0.250.2
average_num_missing_tiles0.6666666670
ParseHTML_avg0.7419354840
RecalculateStyles_avg0.9076923080.61224988
PaintSetup_max11
EventDispatch_avg1.5952439080.173918351
PaintSetup24
FunctionCall_avg2.2999979653.177415417
Layout_avg2.4210526320.545454545
TimerFire_avg2.86958644715
CompositeLayers_avg3.5999674483.272721724
average_commit_time3.6551724143.139534884
FireAnimationFrame_avg42
Program_avg4.3116388193.028819147
average_num_layers_drawn4.9333333332.956521739
FireAnimationFrame_max62
DecodeImage_avg7.56.6
FireAnimationFrame84
ParseHTML_max100
GCEvent_avg1021.00024414
GCEvent1021.00024414
GCEvent_max1021.00024414
Paint_avg14.217423157.421059056
ResizeImage_avg15.9999186210.66666667
EventDispatch_max17.000244141.000244141
RecalculateStyles_max1920
ParseHTML230
DecodeImage_max2922
EvaluateScript_avg29.444363061
ResizeImage_max29.9997558628
DecodeImage3033
Layout_max411
Paint_max4540
Layout466
ResizeImage47.9997558632
TimerFire_max5015
CompositeLayers_max5038
RecalculateStyles5930.00024414
FunctionCall_max62134
TimerFire66.0004882815
EventDispatch67.000244148.000244141
mean_frame_time74.1333333366.70212766
_mean_frame_time-old7869.47826087
mostly_smooth8071
percent_impl_scrolled100100
CompositeLayers107.9990234143.9997559
EvaluateScript_max1122
texture_upload_count138260
Program_max184134
dom_content_loaded_time_ms25294
EvaluateScript264.99926762
FunctionCall275.9997559196.9997559
dropped_percent306.6666667289.1304348
Paint327.0007324282.0002441
jank416.2813839228.6888087
load_time_ms581220
first_paint746.0000515476.9999981
Program1258.9985351051.000244

#browser-perf results

Performance Comparison between old and new versions of HTML5rocks

Using the browser-perf tool, a test suite similar to Chromium-telemetry on the old and new versions of html5rocks was run.

Test Environment

Page: http://www.html5rocks.com/en/tutorials/speed/animated-gifs/ Page versions: New Commit against Old Commit Browser: Chrome 31 Number of Runs: 10

Observations

Overall, the page speed has increased as shown by the numbers.

  • The Paint time and the time for first paint has reduced to almost 1/2 in most cases.
  • Page load time has also reduced by 1/2
  • The Jank is cut by half.
  • Mean frame times and frames dropped while scrolling have also reduced, though by a lesser margin.
  • Event dispatch and layout times has drastically reduced

Running this on your machine

  • Do an npm install -g browser-perf and follow the instructions on the README page
total_texture_upload_time 0.035 0.07
PaintSetup_avg 0.25 0.2
average_num_missing_tiles 0.666666667 0
ParseHTML_avg 0.741935484 0
RecalculateStyles_avg 0.907692308 0.61224988
PaintSetup_max 1 1
EventDispatch_avg 1.595243908 0.173918351
PaintSetup 2 4
FunctionCall_avg 2.299997965 3.177415417
Layout_avg 2.421052632 0.545454545
TimerFire_avg 2.869586447 15
CompositeLayers_avg 3.599967448 3.272721724
average_commit_time 3.655172414 3.139534884
FireAnimationFrame_avg 4 2
Program_avg 4.311638819 3.028819147
average_num_layers_drawn 4.933333333 2.956521739
FireAnimationFrame_max 6 2
DecodeImage_avg 7.5 6.6
FireAnimationFrame 8 4
ParseHTML_max 10 0
GCEvent_avg 10 21.00024414
GCEvent 10 21.00024414
GCEvent_max 10 21.00024414
Paint_avg 14.21742315 7.421059056
ResizeImage_avg 15.99991862 10.66666667
EventDispatch_max 17.00024414 1.000244141
RecalculateStyles_max 19 20
ParseHTML 23 0
DecodeImage_max 29 22
EvaluateScript_avg 29.44436306 1
ResizeImage_max 29.99975586 28
DecodeImage 30 33
Layout_max 41 1
Paint_max 45 40
Layout 46 6
ResizeImage 47.99975586 32
TimerFire_max 50 15
CompositeLayers_max 50 38
RecalculateStyles 59 30.00024414
FunctionCall_max 62 134
TimerFire 66.00048828 15
EventDispatch 67.00024414 8.000244141
mean_frame_time 74.13333333 66.70212766
_mean_frame_time-old 78 69.47826087
mostly_smooth 80 71
percent_impl_scrolled 100 100
CompositeLayers 107.9990234 143.9997559
EvaluateScript_max 112 2
texture_upload_count 138 260
Program_max 184 134
dom_content_loaded_time_ms 252 94
EvaluateScript 264.9992676 2
FunctionCall 275.9997559 196.9997559
dropped_percent 306.6666667 289.1304348
Paint 327.0007324 282.0002441
jank 416.2813839 228.6888087
load_time_ms 581 220
first_paint 746.0000515 476.9999981
Program 1258.998535 1051.000244
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment