File tree Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -6,6 +6,20 @@ Run the following to gather new benchmark data:
6
6
$ flutter drive --target=benchmark/app.dart --driver=benchmark/app_benchmark.dart --profile --endless-trace-buffer --purge-persistent-cache
7
7
```
8
8
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
+
9
23
You can also run short benchmarks in quick succession, without ` --endless-trace-buffer ` .
10
24
This might be useful if you have a very specific issue somewhere and want only that.
11
25
You can’t perform that action at this time.
0 commit comments