mirror of
https://github.com/flutter/flutter.git
synced 2025-06-03 00:51:18 +00:00
migrate macrobenchmark/multi_widget_construction test to e2e (#62539)
This commit is contained in:
parent
f64bc77a2d
commit
1d329d2cc9
@ -45,6 +45,8 @@ The key `[test_name]` can be:
|
|||||||
|
|
||||||
- `animated_placeholder_perf`
|
- `animated_placeholder_perf`
|
||||||
- `backdrop_filter_perf`
|
- `backdrop_filter_perf`
|
||||||
|
- `color_filter_and_fade_perf`
|
||||||
|
- `cubic_bezier_perf`
|
||||||
- `cull_opacity_perf`
|
- `cull_opacity_perf`
|
||||||
- `fading_child_animation_perf`
|
- `fading_child_animation_perf`
|
||||||
- `imagefiltered_transform_animation_perf`
|
- `imagefiltered_transform_animation_perf`
|
||||||
@ -53,7 +55,6 @@ The key `[test_name]` can be:
|
|||||||
- `post_backdrop_filter_perf`
|
- `post_backdrop_filter_perf`
|
||||||
- `simple_animation_perf`
|
- `simple_animation_perf`
|
||||||
- `textfield_perf`
|
- `textfield_perf`
|
||||||
- `cubic_bezier_perf`
|
|
||||||
|
|
||||||
### E2E benchmarks
|
### E2E benchmarks
|
||||||
|
|
||||||
@ -63,6 +64,7 @@ The key `[test_name]` can be:
|
|||||||
host machine. The following tests are E2E:
|
host machine. The following tests are E2E:
|
||||||
|
|
||||||
- `cull_opacity_perf.dart`
|
- `cull_opacity_perf.dart`
|
||||||
|
- `multi_widget_construction_perf`
|
||||||
|
|
||||||
These tests should be run by:
|
These tests should be run by:
|
||||||
|
|
||||||
|
@ -0,0 +1,17 @@
|
|||||||
|
// 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),
|
||||||
|
);
|
||||||
|
}
|
@ -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/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;
|
).run;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
TaskFunction createsMultiWidgetConstructPerfE2ETest() {
|
||||||
|
return E2EPerfTest(
|
||||||
|
'${flutterDirectory.path}/dev/benchmarks/macrobenchmarks',
|
||||||
|
'test/multi_widget_construction_perf_e2e.dart',
|
||||||
|
).run;
|
||||||
|
}
|
||||||
|
|
||||||
TaskFunction createFramePolicyIntegrationTest() {
|
TaskFunction createFramePolicyIntegrationTest() {
|
||||||
final String testDirectory =
|
final String testDirectory =
|
||||||
'${flutterDirectory.path}/dev/benchmarks/macrobenchmarks';
|
'${flutterDirectory.path}/dev/benchmarks/macrobenchmarks';
|
||||||
|
@ -172,6 +172,13 @@ tasks:
|
|||||||
stage: devicelab
|
stage: devicelab
|
||||||
required_agent_capabilities: ["linux/android"]
|
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:
|
frame_policy_delay_test_android:
|
||||||
description: >
|
description: >
|
||||||
Tests the effect of LiveTestWidgetsFlutterBindingFramePolicy.benchmarkLive
|
Tests the effect of LiveTestWidgetsFlutterBindingFramePolicy.benchmarkLive
|
||||||
|
Loading…
Reference in New Issue
Block a user