diff --git a/dev/devicelab/lib/tasks/web_benchmarks.dart b/dev/devicelab/lib/tasks/web_benchmarks.dart index c50e8254ce..e672cf18e3 100644 --- a/dev/devicelab/lib/tasks/web_benchmarks.dart +++ b/dev/devicelab/lib/tasks/web_benchmarks.dart @@ -38,7 +38,8 @@ Future runWebBenchmark(WebBenchmarkOptions benchmarkOptions) async { options: [ 'web', '--no-tree-shake-icons', // local engine builds are frequently out of sync with the Dart Kernel version - if (benchmarkOptions.useWasm) ...['-O4', '--wasm', '--no-strip-wasm'], + '-O2', + if (benchmarkOptions.useWasm) ...['--wasm', '--no-strip-wasm'], '--dart-define=FLUTTER_WEB_ENABLE_PROFILING=true', '--profile', '--no-web-resources-cdn',