Add benchmarks to measure impact of alpha saveLayers in DisplayLists (#97336)

This commit is contained in:
Jim Graham
2022-01-27 13:25:17 -08:00
committed by GitHub
parent 0c9d24f58c
commit 9c934041bd
9 changed files with 234 additions and 0 deletions

View File

@@ -0,0 +1,19 @@
// 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:macrobenchmarks/common.dart';
import 'util.dart';
void main() {
macroPerfTestMultiPageE2E(
'opacity_peephole_col_of_alpha_save_layer_rows',
<ScrollableButtonRoute>[
ScrollableButtonRoute(kScrollableName, kOpacityPeepholeRouteName),
ScrollableButtonRoute(kOpacityScrollableName, kOpacityPeepholeColumnOfAlphaSaveLayerRowsOfRectsRouteName),
],
pageDelay: const Duration(seconds: 1),
duration: const Duration(seconds: 10),
);
}

View File

@@ -0,0 +1,19 @@
// 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:macrobenchmarks/common.dart';
import 'util.dart';
void main() {
macroPerfTestMultiPageE2E(
'opacity_peephole_grid_of_alpha_savelayers',
<ScrollableButtonRoute>[
ScrollableButtonRoute(kScrollableName, kOpacityPeepholeRouteName),
ScrollableButtonRoute(kOpacityScrollableName, kOpacityPeepholeGridOfAlphaSaveLayerRectsRouteName),
],
pageDelay: const Duration(seconds: 1),
duration: const Duration(seconds: 10),
);
}