Added a benchmark for ImageCache (#33814)

* Add an image cache benchmark for a monochrome image
This commit is contained in:
Kaushik Iska
2019-06-04 12:32:52 -07:00
committed by GitHub
parent e0cb468865
commit 92bfc99132
8 changed files with 97 additions and 9 deletions

View File

@@ -0,0 +1,17 @@
// Copyright 2016 The Chromium 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/framework/framework.dart';
import 'package:flutter_devicelab/framework/utils.dart';
import 'package:flutter_devicelab/tasks/perf_tests.dart';
Future<void> main() async {
await task(MemoryTest(
'${flutterDirectory.path}/examples/flutter_gallery',
'test_memory/image_cache_memory.dart',
'io.flutter.demo.gallery',
).run);
}

View File

@@ -527,6 +527,13 @@ tasks:
stage: devicelab
required_agent_capabilities: ["linux/android"]
flutter_gallery__image_cache_memory:
description: >
Measures memory usage for a list of large red squares in smaller containers.
stage: devicelab
required_agent_capabilities: ["linux/android"]
flaky: true
analyzer_benchmark:
description: >
Measures the speed of Dart analyzer.