Add benchmarks for single-threaded Skwasm. (#158027)

This adds benchmarks that run on single threaded skwasm.
This commit is contained in:
Jackson Gardner
2024-11-04 08:38:10 -08:00
committed by GitHub
parent 8591d0c16a
commit 4a33136db8
8 changed files with 58 additions and 5 deletions

View File

@@ -10,7 +10,8 @@ Future<void> main() async {
await task(() async {
return runWebBenchmark((
webRenderer: 'canvaskit',
useWasm: false
useWasm: false,
forceSingleThreadedSkwasm: false,
));
});
}

View File

@@ -10,7 +10,8 @@ Future<void> main() async {
await task(() async {
return runWebBenchmark((
webRenderer: 'html',
useWasm: false
useWasm: false,
forceSingleThreadedSkwasm: false,
));
});
}

View File

@@ -10,7 +10,8 @@ Future<void> main() async {
await task(() async {
return runWebBenchmark((
webRenderer: 'skwasm',
useWasm: true
useWasm: true,
forceSingleThreadedSkwasm: false,
));
});
}

View File

@@ -0,0 +1,17 @@
// Copyright 2014 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'package:flutter_devicelab/framework/framework.dart';
import 'package:flutter_devicelab/tasks/web_benchmarks.dart';
/// Runs all Web benchmarks using the Skwasm rendering backend.
Future<void> main() async {
await task(() async {
return runWebBenchmark((
webRenderer: 'skwasm',
useWasm: true,
forceSingleThreadedSkwasm: true,
));
});
}