Skip to content

Instantly share code, notes, and snippets.

@jaredhirsch
Last active May 9, 2017 00:50
Show Gist options
  • Save jaredhirsch/b07c1ba02a02d68c6391ec1d055bf7ef to your computer and use it in GitHub Desktop.
Save jaredhirsch/b07c1ba02a02d68c6391ec1d055bf7ef to your computer and use it in GitHub Desktop.
Measuring the performance impact of Firefox Screenshots

I'm helping to land a Test Pilot experiment (Page Shot, now dubbed Firefox Screenshots) in Firefox.

We're landing it as a system addon~, preffed off, but it still has some unknown impact on memory consumption and startup performance.

This will be my first time profiling anything in Gecko, and it seems like it might be worth writing down my steps, both for others wanting to try it out, and to identify rough spots in the APIs or missing bits of documentation.

Steps:


As a starting point, I tried installing the about:startup addon (MDN docs), then started Firefox about 10 times with screenshots preffed on and preffed off.

To my surprise, there is a difference of about 20 milliseconds between the firstPaint times with and without Screenshots preffed on: 1579 vs 1600 milliseconds (a simple average).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment