skia2/tools/perf-canvaskit-puppeteer
Kevin Lubick 51891392d8 [canvaskit] Add benchmarks on SKPs
For each skp in the corpus, we start a fresh instance of
Chromium (via puppeteer), draw the skp and measure that time.
This process is repeated a fixed amount of repetitions
and the median, the average, and the std deviation is reported
to perf (as well as the individual datapoints as an FYI).

Importantly (and something we'll need to change about
SkottieFrames), we measure the average time between frames
after unlocking the framerate. This ensures we account for
the time needed by the GPU to actually draw (flush() returns
after the GPU has all the instructions, but not necessarily
has been able to draw).

This implementation is very similar to the SkottieFrames
code; a notable deviation is the repetitions are handled
outside of the html, i.e. a new chrome window per run.

I explored using content_shell, but noticed that requires
building Chromium, which our infrastructure is not set up
to do well.

Change-Id: I14fdbdc951604d3fdf06e81a4be7e614d0e53c03
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/295079
Commit-Queue: Kevin Lubick <kjlubick@google.com>
Reviewed-by: Nathaniel Nifong <nifong@google.com>
Reviewed-by: Eric Boren <borenet@google.com>
2020-06-10 20:11:00 +00:00
..
path_translate_assets Add puppeteer perf for performance degredation related to transforming a complex path. Translations 2020-05-29 20:17:14 +00:00
Makefile [canvaskit] Add benchmarks on SKPs 2020-06-10 20:11:00 +00:00
package-lock.json Add puppeteer perf for performance degredation related to transforming a complex path. Translations 2020-05-29 20:17:14 +00:00
package.json Add puppeteer perf for performance degredation related to transforming a complex path. Translations 2020-05-29 20:17:14 +00:00
path-transform.html Add puppeteer perf for performance degredation related to transforming a complex path. Translations 2020-05-29 20:17:14 +00:00
perf-canvaskit-with-puppeteer.js [canvaskit] Add benchmarks on SKPs 2020-06-10 20:11:00 +00:00
render-skp.html [canvaskit] Add benchmarks on SKPs 2020-06-10 20:11:00 +00:00
skottie-frames.html [canvaskit] Fix width/height API 2020-05-27 14:44:01 +00:00