flutter/dev/benchmarks/macrobenchmarks/lib
Jackson Gardner e8f4d803ba
Improve web benchmarks measurements (#127900)
By default, the browser fuzzes the timer APIs such that they have a granularity of approximately 100 microseconds (this is due to Spectre mitigation techniques). However, many of the thing we are trying to measure actually have a much finer granularity than 100 microseconds. As a result, many of our benchmarks are extremely noisy and don't provide accurate data.

By serving the initial script files with the `Cross-Origin-Opener-Policy: same-origin` and `Cross-Origin-Embedder-Policy: require-corp` HTTP headers, the browser runs the benchmarks in a `crossOriginIsolated` context, which restores the fine granularity of APIs such as `performance.now()` to microsecond precision.

Also, we were considering anything an outlier that was more than one standard deviation away from the mean. In a normal distribution, that means we are only capturing 68% of the data and the rest are considered outliers. This is not ideal. Doing two standard deviations away captures 95% of the data, and the outliers are in the remaining 5%, which seems much more reasonable.
2023-05-31 02:29:02 +00:00
..
src Improve web benchmarks measurements (#127900) 2023-05-31 02:29:02 +00:00
common.dart [devicelab] add drawPoints benchmark (#126728) 2023-05-15 19:14:58 +00:00
main.dart [devicelab] add drawPoints benchmark (#126728) 2023-05-15 19:14:58 +00:00
web_benchmarks.dart Revert "Migrate benchmarks to package:web" (#127207) 2023-05-19 10:20:44 -07:00