Added a benchmark for ImageCache (#33814)
* Add an image cache benchmark for a monochrome image
This commit is contained in:
@@ -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);
|
||||
}
|
||||
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user