* Add test case for Flutter Issue #27677 as a benchmark. See https://github.com/flutter/flutter/issues/27677 I got the following results running the test on a Moto E2 which will help us determine how much we can gain by analyzing the operations and eliminating unnecessary repaints based on dirty rectangles/regions. no blurs - avg 216.0 fps over 3 samples blur the group - avg 22.9 fps over 3 samples blur each txt - avg 3.4 fps over 3 samples * Added the new benchmark to be tracked on the dashboard.
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
// Copyright 2019 The Chromium 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/tasks/perf_tests.dart';
|
||||
import 'package:flutter_devicelab/framework/adb.dart';
|
||||
import 'package:flutter_devicelab/framework/framework.dart';
|
||||
|
||||
Future<void> main() async {
|
||||
deviceOperatingSystem = DeviceOperatingSystem.android;
|
||||
await task(createBackdropFilterPerfTest());
|
||||
}
|
||||
@@ -54,6 +54,14 @@ TaskFunction createCubicBezierPerfTest() {
|
||||
).run;
|
||||
}
|
||||
|
||||
TaskFunction createBackdropFilterPerfTest() {
|
||||
return PerfTest(
|
||||
'${flutterDirectory.path}/dev/benchmarks/macrobenchmarks',
|
||||
'test_driver/backdrop_filter_perf.dart',
|
||||
'backdrop_filter_perf',
|
||||
).run;
|
||||
}
|
||||
|
||||
TaskFunction createFlutterGalleryStartupTest() {
|
||||
return StartupTest(
|
||||
'${flutterDirectory.path}/examples/flutter_gallery',
|
||||
|
||||
@@ -171,6 +171,13 @@ tasks:
|
||||
stage: devicelab
|
||||
required_agent_capabilities: ["mac/android"]
|
||||
|
||||
backdrop_filter_perf__timeline_summary:
|
||||
description: >
|
||||
Measures the runtime performance of backdrop filter blurs on Android.
|
||||
stage: devicelab
|
||||
required_agent_capabilities: ["mac/android"]
|
||||
flaky: true
|
||||
|
||||
flavors_test:
|
||||
description: >
|
||||
Checks that flavored builds work on Android.
|
||||
|
||||
Reference in New Issue
Block a user