Add benchmarks for single-threaded Skwasm. (#158027)
This adds benchmarks that run on single threaded skwasm.
This commit is contained in:
@@ -10,7 +10,8 @@ Future<void> main() async {
|
||||
await task(() async {
|
||||
return runWebBenchmark((
|
||||
webRenderer: 'canvaskit',
|
||||
useWasm: false
|
||||
useWasm: false,
|
||||
forceSingleThreadedSkwasm: false,
|
||||
));
|
||||
});
|
||||
}
|
||||
|
||||
@@ -10,7 +10,8 @@ Future<void> main() async {
|
||||
await task(() async {
|
||||
return runWebBenchmark((
|
||||
webRenderer: 'html',
|
||||
useWasm: false
|
||||
useWasm: false,
|
||||
forceSingleThreadedSkwasm: false,
|
||||
));
|
||||
});
|
||||
}
|
||||
|
||||
@@ -10,7 +10,8 @@ Future<void> main() async {
|
||||
await task(() async {
|
||||
return runWebBenchmark((
|
||||
webRenderer: 'skwasm',
|
||||
useWasm: true
|
||||
useWasm: true,
|
||||
forceSingleThreadedSkwasm: false,
|
||||
));
|
||||
});
|
||||
}
|
||||
|
||||
17
dev/devicelab/bin/tasks/web_benchmarks_skwasm_st.dart
Normal file
17
dev/devicelab/bin/tasks/web_benchmarks_skwasm_st.dart
Normal 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,
|
||||
));
|
||||
});
|
||||
}
|
||||
Reference in New Issue
Block a user