mirror of
https://github.com/flutter/flutter.git
synced 2026-02-05 19:28:51 +08:00
Benchmarks
This directory (and its sub-directories) contain benchmarks for Flutter. The reporting format for benchmarks is not standardized yet, so benchmarks here are typically run by hand. To run a benchmark:
-
Build
sky_shellfor Linux Release using the instructions in the Engine repository. -
Run
pub getin thepackages/flutterdirectory. -
Run the benchmarks by running the following command from the root of the flutter repository. Replace
stocks/layout_bench.dartwith the path to whichever benchmark you want to run. If you didn't build the engine in the recommended place, then also update the path accordingly. If you made changes to sky_services, you'll also need to update thepubspec.yamlfile to point to that using a dependency_override.
../engine/src/out/Release/sky_shell packages/flutter/benchmark/stocks/layout_bench.dart --package-root=packages/flutter/packages