README.md 728 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 10 11

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

2. Run `pub get` in the `packages/unit` directory.

Ian Hickson's avatar
Ian Hickson committed
12 13 14
3. Run the benchmarks by running the following command from the root
   of the flutter repository (replacing `stocks/layout_bench.dart`
   with the path to whichever benchmark you want to run):
15 16

```
Ian Hickson's avatar
Ian Hickson committed
17
/path/to/engine/src/out/Release/sky_shell packages/unit/benchmark/stocks/layout_bench.dart --package-root=packages/unit/packages
18
```