[devicelab] add drawPoints benchmark (#126728)

Add a benchmark that measures the improvements from https://github.com/flutter/engine/pull/41803
This commit is contained in:
Jonah Williams
2023-05-15 12:14:58 -07:00
committed by GitHub
parent 674b1ad0ae
commit 41abe998ee
8 changed files with 158 additions and 0 deletions

View File

@@ -0,0 +1,14 @@
// 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/devices.dart';
import 'package:flutter_devicelab/framework/framework.dart';
import 'package:flutter_devicelab/tasks/perf_tests.dart';
Future<void> main() async {
deviceOperatingSystem = DeviceOperatingSystem.ios;
await task(createDrawPointsPerfTest());
}

View File

@@ -638,6 +638,19 @@ TaskFunction createAnimatedBlurBackropFilterPerfTest({
).run;
}
TaskFunction createDrawPointsPerfTest({
bool? enableImpeller,
}) {
return PerfTest(
'${flutterDirectory.path}/dev/benchmarks/macrobenchmarks',
'test_driver/run_app.dart',
'draw_points_perf',
enableImpeller: enableImpeller,
testDriver: 'test_driver/draw_points_perf_test.dart',
saveTraceFile: true,
).run;
}
TaskFunction createAnimatedComplexOpacityPerfE2ETest({
bool? enableImpeller,
}) {