flutter/dev/benchmarks
Michael Goderbauer c4ad1dc1e9
const vs. non-const widget build benchmark (#148261)
This benchmark illustrates the impact that const'ness has on widget build times by building a widget tree with all const-widgets and then building the same widget tree without any const'ness. Local testing with this benchmark running on a Moto G4 shows that const'ness is 13-16% faster.

I'd like to check this benchmark in because the question of how important widget const'ness is comes up every so often. With this benchmark we have up-to-date data to point people to.
2024-05-16 23:23:14 +00:00
..
complex_layout Don't pin package:macros (#148087) 2024-05-09 16:28:49 -07:00
macrobenchmarks if chains → switch expressions (#147793) 2024-05-10 00:55:48 -06:00
microbenchmarks const vs. non-const widget build benchmark (#148261) 2024-05-16 23:23:14 +00:00
multiple_flutters Roll pub packages (#147995) 2024-05-08 20:28:00 +00:00
platform_channels_benchmarks Don't pin package:macros (#148087) 2024-05-09 16:28:49 -07:00
platform_views_layout Don't pin package:macros (#148087) 2024-05-09 16:28:49 -07:00
platform_views_layout_hybrid_composition Don't pin package:macros (#148087) 2024-05-09 16:28:49 -07:00
test_apps/stocks Don't pin package:macros (#148087) 2024-05-09 16:28:49 -07:00