Unverified Commit 1d329d2c authored by Ming Lyu (CareF)'s avatar Ming Lyu (CareF) Committed by GitHub

migrate macrobenchmark/multi_widget_construction test to e2e (#62539)

parent f64bc77a
......@@ -45,6 +45,8 @@ The key `[test_name]` can be:
- `animated_placeholder_perf`
- `backdrop_filter_perf`
- `color_filter_and_fade_perf`
- `cubic_bezier_perf`
- `cull_opacity_perf`
- `fading_child_animation_perf`
- `imagefiltered_transform_animation_perf`
......@@ -53,7 +55,6 @@ The key `[test_name]` can be:
- `post_backdrop_filter_perf`
- `simple_animation_perf`
- `textfield_perf`
- `cubic_bezier_perf`
### E2E benchmarks
......@@ -63,6 +64,7 @@ The key `[test_name]` can be:
host machine. The following tests are E2E:
- `cull_opacity_perf.dart`
- `multi_widget_construction_perf`
These tests should be run by:
......
// 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() {
macroPerfTestE2E(
'multi_widget_construction_perf',
kMultiWidgetConstructionRouteName,
pageDelay: const Duration(seconds: 1),
duration: const Duration(seconds: 10),
timeout: const Duration(seconds: 45),
);
}
// 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/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(createsMultiWidgetConstructPerfE2ETest());
}
......@@ -269,6 +269,13 @@ TaskFunction createsMultiWidgetConstructPerfTest() {
).run;
}
TaskFunction createsMultiWidgetConstructPerfE2ETest() {
return E2EPerfTest(
'${flutterDirectory.path}/dev/benchmarks/macrobenchmarks',
'test/multi_widget_construction_perf_e2e.dart',
).run;
}
TaskFunction createFramePolicyIntegrationTest() {
final String testDirectory =
'${flutterDirectory.path}/dev/benchmarks/macrobenchmarks';
......
......@@ -172,6 +172,13 @@ tasks:
stage: devicelab
required_agent_capabilities: ["linux/android"]
multi_widget_construction_perf__e2e_summary:
description: >
Measures the runtime performance of constructing and destructing widgets on Android.
stage: devicelab
required_agent_capabilities: ["linux/android"]
flaky: true
frame_policy_delay_test_android:
description: >
Tests the effect of LiveTestWidgetsFlutterBindingFramePolicy.benchmarkLive
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment