2015-01-09 18:35:52 +00:00
|
|
|
Skia Perf
|
|
|
|
=========
|
|
|
|
|
2016-10-10 13:38:59 +00:00
|
|
|
[Skia Perf](https://perf.skia.org) is a Polymer-based web application for
|
|
|
|
analyzing and viewing performance metrics produced by Skia's testing
|
|
|
|
infrastructure.
|
2015-01-09 18:35:52 +00:00
|
|
|
|
2016-10-10 13:38:59 +00:00
|
|
|
<img src=Perf.png style="margin-left:30px" align="left" width="800"/> <br clear="left">
|
2015-01-09 18:35:52 +00:00
|
|
|
|
2016-10-10 13:38:59 +00:00
|
|
|
Skia tests across a large number of platforms and configurations, and each
|
2018-01-10 14:55:05 +00:00
|
|
|
commit to Skia generates 240,000 individual values that are sent to Perf,
|
2016-10-10 13:38:59 +00:00
|
|
|
consisting mostly of performance benchmark results, but also including memory
|
|
|
|
and coverage data.
|
|
|
|
|
|
|
|
Perf includes tools for analyzing such a large corpus of data, the most
|
2016-12-01 20:37:06 +00:00
|
|
|
powerful is [k-means clustering](https://perf.skia.org/t/). This tool groups
|
|
|
|
large sets of performance metrics together based on how they change over time,
|
|
|
|
and highlights sets of metrics that have performance regressions.
|
2016-10-10 13:38:59 +00:00
|
|
|
|
2016-12-01 20:37:06 +00:00
|
|
|
<img src=Cluster.png style="margin-left:30px" align="left" width="500"/> <br clear="left">
|
2015-01-09 18:35:52 +00:00
|
|
|
|
|
|
|
Calculations
|
|
|
|
------------
|
|
|
|
|
|
|
|
Skia Perf has the ability to perform calculations over the test data
|
|
|
|
allowing you to build up interesting queries.
|
|
|
|
|
2015-01-26 14:47:55 +00:00
|
|
|
This query displays [the ratio of playback time in ms to the number of ops for desk\_wowwiki.skp](https://perf.skia.org/#1876):
|
2015-01-09 18:35:52 +00:00
|
|
|
|
|
|
|
ratio(
|
|
|
|
ave(fill(filter("name=desk_wowwiki.skp&sub_result=min_ms"))),
|
|
|
|
ave(fill(filter("name=desk_wowwiki.skp&sub_result=ops")))
|
|
|
|
)
|
|
|
|
|
2015-01-26 14:47:55 +00:00
|
|
|
You can also use the data to answer questions like [how many tests were run per commit](https://perf.skia.org/#1878).
|
2015-01-09 18:35:52 +00:00
|
|
|
|
|
|
|
count(filter(""))
|
|
|
|
|
2015-01-26 14:47:55 +00:00
|
|
|
See Skia Perf for the [full list of functions available](https://perf.skia.org/help).
|
2015-11-18 19:14:31 +00:00
|
|
|
|