Skip to content

Commit 13e5f8c

Browse files
Run web benchmarks at -O2 to evaluate performance. (#162625)
As per flutter/flutter#162620, we are going to run the web benchmarks at `-O2` for a trial period to evaluate the performance difference, which will give us some data on whether we can consider changing to `-O2` by default.
1 parent b29f8f7 commit 13e5f8c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

dev/devicelab/lib/tasks/web_benchmarks.dart

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,8 @@ Future<TaskResult> runWebBenchmark(WebBenchmarkOptions benchmarkOptions) async {
3838
options: <String>[
3939
'web',
4040
'--no-tree-shake-icons', // local engine builds are frequently out of sync with the Dart Kernel version
41-
if (benchmarkOptions.useWasm) ...<String>['-O4', '--wasm', '--no-strip-wasm'],
41+
'-O2',
42+
if (benchmarkOptions.useWasm) ...<String>['--wasm', '--no-strip-wasm'],
4243
'--dart-define=FLUTTER_WEB_ENABLE_PROFILING=true',
4344
'--profile',
4445
'--no-web-resources-cdn',

0 commit comments

Comments
 (0)