flutter/dev/benchmarks/microbenchmarks/lib
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
..
building const vs. non-const widget build benchmark (#148261) 2024-05-16 23:23:14 +00:00
foundation Reverts "Reland Add UI Benchmarks (#143542) (#143799)" (#143946) 2024-02-22 17:15:26 +00:00
geometry Export public API types from animation and physics libraries (#106757) 2022-06-29 05:26:09 +00:00
gestures Update VelocityTracker (4) (#139166) 2023-11-29 14:59:13 +00:00
language Implementing null-aware operators throughout the repository (#143804) 2024-02-23 19:02:22 +00:00
layout Reland "Add a microbenchmark for text intrinsic height layout (#145007)" (#145037) 2024-03-13 00:52:24 +00:00
stocks Fix divide-by-zero crash in animation_bench benchmark (#137539) 2023-10-31 15:10:53 +00:00
ui Update collection-fors to prefer final (as per updated prefer_final_in_for_each) (#127511) 2023-05-26 23:34:36 +00:00
common.dart Remove new keyword in a few files (#104438) 2022-06-06 16:08:06 -07:00