Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
F
Front-End
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
abdullh.alsoleman
Front-End
Commits
1d329d2c
Unverified
Commit
1d329d2c
authored
Aug 05, 2020
by
Ming Lyu (CareF)
Committed by
GitHub
Aug 05, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
migrate macrobenchmark/multi_widget_construction test to e2e (#62539)
parent
f64bc77a
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
48 additions
and
1 deletion
+48
-1
README.md
dev/benchmarks/macrobenchmarks/README.md
+3
-1
multi_widget_construction_perf_e2e.dart
...robenchmarks/test/multi_widget_construction_perf_e2e.dart
+17
-0
multi_widget_construction_perf__e2e_summary.dart
...in/tasks/multi_widget_construction_perf__e2e_summary.dart
+14
-0
perf_tests.dart
dev/devicelab/lib/tasks/perf_tests.dart
+7
-0
manifest.yaml
dev/devicelab/manifest.yaml
+7
-0
No files found.
dev/benchmarks/macrobenchmarks/README.md
View file @
1d329d2c
...
...
@@ -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:
...
...
dev/benchmarks/macrobenchmarks/test/multi_widget_construction_perf_e2e.dart
0 → 100644
View file @
1d329d2c
// 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
),
);
}
dev/devicelab/bin/tasks/multi_widget_construction_perf__e2e_summary.dart
0 → 100644
View file @
1d329d2c
// 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
());
}
dev/devicelab/lib/tasks/perf_tests.dart
View file @
1d329d2c
...
...
@@ -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'
;
...
...
dev/devicelab/manifest.yaml
View file @
1d329d2c
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment