From bb5d131cae1be9c67e06ede4c178917401145f78 Mon Sep 17 00:00:00 2001 From: Adam Barth Date: Tue, 10 Nov 2015 09:44:58 -0800 Subject: [PATCH] Update instructions for running benchmarks --- packages/unit/benchmark/README.md | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/packages/unit/benchmark/README.md b/packages/unit/benchmark/README.md index e11273533b3..c1346785f48 100644 --- a/packages/unit/benchmark/README.md +++ b/packages/unit/benchmark/README.md @@ -1,13 +1,16 @@ -Benchmarks -========== +# 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 particular benchmark, use a command -similar to that used to run individual unit tests. For example: +here are typically run by hand. To run a benchmark: + +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. + +3. Run the benchmark: ``` -sky/tools/run_tests --debug -r expanded benchmark/gestures/velocity_tracker_bench.dart +/path/to/engine/src/out/Release/sky_shell packages/unit/benchmark/stocks/layout_bench.dart --package-root=packages/unit/package ``` - -(The `-r expanded` flag prints one line per test, which can be more helpful -than the default format when running individual tests.)