Initial web benchmark harness and 3 benchmarks (#49460)
Initial web benchmark harness and 3 benchmarks
This commit is contained in:
15
dev/devicelab/bin/tasks/web_benchmarks_canvaskit.dart
Normal file
15
dev/devicelab/bin/tasks/web_benchmarks_canvaskit.dart
Normal file
@@ -0,0 +1,15 @@
|
||||
// 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 'dart:async';
|
||||
|
||||
import 'package:flutter_devicelab/framework/framework.dart';
|
||||
import 'package:flutter_devicelab/tasks/web_benchmarks.dart';
|
||||
|
||||
/// Runs all Web benchmarks using the CanvasKit rendering backend.
|
||||
Future<void> main() async {
|
||||
await task(() async {
|
||||
return await runWebBenchmark(useCanvasKit: true);
|
||||
});
|
||||
}
|
||||
15
dev/devicelab/bin/tasks/web_benchmarks_html.dart
Normal file
15
dev/devicelab/bin/tasks/web_benchmarks_html.dart
Normal file
@@ -0,0 +1,15 @@
|
||||
// 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 'dart:async';
|
||||
|
||||
import 'package:flutter_devicelab/framework/framework.dart';
|
||||
import 'package:flutter_devicelab/tasks/web_benchmarks.dart';
|
||||
|
||||
/// Runs all Web benchmarks using the HTML rendering backend.
|
||||
Future<void> main() async {
|
||||
await task(() async {
|
||||
return await runWebBenchmark(useCanvasKit: false);
|
||||
});
|
||||
}
|
||||
Reference in New Issue
Block a user