• Jackson Gardner's avatar
    Improve web benchmarks measurements (#127900) · e8f4d803
    Jackson Gardner authored
    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.
    e8f4d803
Name
Last commit
Last update
..
bench_build_image.dart Loading commit data...
bench_build_material_checkbox.dart Loading commit data...
bench_card_infinite_scroll.dart Loading commit data...
bench_child_layers.dart Loading commit data...
bench_clipped_out_pictures.dart Loading commit data...
bench_default_target_platform.dart Loading commit data...
bench_draw_rect.dart Loading commit data...
bench_dynamic_clip_on_static_picture.dart Loading commit data...
bench_image_decoding.dart Loading commit data...
bench_material_3.dart Loading commit data...
bench_mouse_region_grid_hover.dart Loading commit data...
bench_mouse_region_grid_scroll.dart Loading commit data...
bench_mouse_region_mixed_grid_hover.dart Loading commit data...
bench_pageview_scroll_linethrough.dart Loading commit data...
bench_paths.dart Loading commit data...
bench_paths_recording.dart Loading commit data...
bench_picture_recording.dart Loading commit data...
bench_platform_view_infinite_scroll.dart Loading commit data...
bench_simple_lazy_text_scroll.dart Loading commit data...
bench_text_layout.dart Loading commit data...
bench_text_out_of_picture_bounds.dart Loading commit data...
bench_wrapbox_scroll.dart Loading commit data...
recorder.dart Loading commit data...
test_data.dart Loading commit data...