README.md 970 Bytes
Newer Older
1 2
# Benchmarks

Ian Hickson's avatar
Ian Hickson committed
3 4 5
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:
6 7 8 9

1. Build `sky_shell` for Linux Release using the instructions in the
   [Engine repository](https://github.com/flutter/engine).

Hixie's avatar
Hixie committed
10
2. Run `pub get` in the `packages/flutter` directory.
11

Ian Hickson's avatar
Ian Hickson committed
12
3. Run the benchmarks by running the following command from the root
Hixie's avatar
Hixie committed
13 14 15 16 17 18
   of the flutter repository. Replace `stocks/layout_bench.dart` with
   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 the `pubspec.yaml` file to point to that using a
   dependency_override.
19 20

```
Hixie's avatar
Hixie committed
21
../engine/src/out/Release/sky_shell packages/flutter/benchmark/stocks/layout_bench.dart --package-root=packages/flutter/packages
22
```