benchmark animation performance of Opacity widget (#54903)

This commit is contained in:
Jim Graham
2020-04-17 18:34:10 -07:00
committed by GitHub
parent a0379f45d6
commit 77ea2da746
8 changed files with 277 additions and 0 deletions

View File

@@ -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:flutter_driver/driver_extension.dart';
import 'package:macrobenchmarks/main.dart' as app;
void main() {
enableFlutterDriverExtension();
app.main();
}

View File

@@ -0,0 +1,16 @@
// 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() {
macroPerfTest(
'fading_child_animation_perf',
kFadingChildAnimationRouteName,
pageDelay: const Duration(seconds: 1),
duration: const Duration(seconds: 10),
);
}