mirror of
https://github.com/flutter/flutter
synced 2024-09-17 23:31:55 +00:00
migrate cubic_bezier_perf to e2e (#64487)
This commit is contained in:
parent
33f799508c
commit
51f1c98490
2
dev/benchmarks/macrobenchmarks/.gitignore
vendored
2
dev/benchmarks/macrobenchmarks/.gitignore
vendored
|
@ -1,2 +1,4 @@
|
|||
lib/generated_plugin_registrant.dart
|
||||
devtools_memory.json
|
||||
*.sksl.json
|
||||
vmservice.out
|
||||
|
|
|
@ -0,0 +1,11 @@
|
|||
// 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('cubic_bezier_perf', kCubicBezierRouteName);
|
||||
}
|
14
dev/devicelab/bin/tasks/cubic_bezier_perf__e2e_summary.dart
Normal file
14
dev/devicelab/bin/tasks/cubic_bezier_perf__e2e_summary.dart
Normal file
|
@ -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(createCubicBezierPerfE2ETest());
|
||||
}
|
|
@ -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(createCubicBezierPerfSkSlWarmupE2ETest());
|
||||
}
|
|
@ -92,6 +92,20 @@ TaskFunction createCubicBezierPerfTest() {
|
|||
).run;
|
||||
}
|
||||
|
||||
TaskFunction createCubicBezierPerfE2ETest() {
|
||||
return PerfTest.e2e(
|
||||
'${flutterDirectory.path}/dev/benchmarks/macrobenchmarks',
|
||||
'test/cubic_bezier_perf_e2e.dart',
|
||||
).run;
|
||||
}
|
||||
|
||||
TaskFunction createCubicBezierPerfSkSlWarmupE2ETest() {
|
||||
return PerfTestWithSkSL.e2e(
|
||||
'${flutterDirectory.path}/dev/benchmarks/macrobenchmarks',
|
||||
'test/cubic_bezier_perf_e2e.dart',
|
||||
).run;
|
||||
}
|
||||
|
||||
TaskFunction createCubicBezierPerfSkSLWarmupTest() {
|
||||
return PerfTestWithSkSL(
|
||||
'${flutterDirectory.path}/dev/benchmarks/macrobenchmarks',
|
||||
|
|
|
@ -209,6 +209,14 @@ tasks:
|
|||
stage: devicelab
|
||||
required_agent_capabilities: ["mac/android"]
|
||||
|
||||
cubic_bezier_perf__e2e_summary:
|
||||
description: >
|
||||
Measures the runtime performance of cubic bezier animations on Android
|
||||
using e2e.
|
||||
stage: devicelab
|
||||
required_agent_capabilities: ["linux/android"]
|
||||
flaky: true
|
||||
|
||||
cubic_bezier_perf_sksl_warmup__timeline_summary:
|
||||
description: >
|
||||
Measures the runtime performance of cubic bezier animations on Android
|
||||
|
@ -216,6 +224,14 @@ tasks:
|
|||
stage: devicelab
|
||||
required_agent_capabilities: ["mac/android"]
|
||||
|
||||
cubic_bezier_perf_sksl_warmup__e2e_summary:
|
||||
description: >
|
||||
Measures the runtime performance of cubic bezier animations on Android
|
||||
with SkSL shader warm-up using e2e.
|
||||
stage: devicelab
|
||||
required_agent_capabilities: ["linux/android"]
|
||||
flaky: true
|
||||
|
||||
flutter_gallery_sksl_warmup_ios32__transition_perf:
|
||||
description: >
|
||||
Measures the runtime performance of Flutter gallery transitions on iPhone4s
|
||||
|
|
Loading…
Reference in a new issue