Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 40750a4

Browse files
committed
Improve command in README
1 parent 733ca05 commit 40750a4

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

benchmark/README.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,20 @@ Run the following to gather new benchmark data:
66
$ flutter drive --target=benchmark/app.dart --driver=benchmark/app_benchmark.dart --profile --endless-trace-buffer --purge-persistent-cache
77
```
88

9+
You can do many runs one after another to minimize the effect of random noise
10+
in measurements.
11+
12+
```text
13+
for n in {1..10}; do echo "=== Run number ${n}/10 ==="; \
14+
flutter drive \
15+
--target=benchmark/app.dart \
16+
--driver=benchmark/app_benchmark.dart \
17+
--profile \
18+
--endless-trace-buffer \
19+
--purge-persistent-cache; \
20+
done
21+
```
22+
923
You can also run short benchmarks in quick succession, without `--endless-trace-buffer`.
1024
This might be useful if you have a very specific issue somewhere and want only that.
1125

0 commit comments

Comments
 (0)