Introduce image_list performance benchmark that runs on jit(debug) build. (#35424)
* Introduce image_list performance benchmark that runs on jit(debug) build. We want to track performance of debug build because ongoing work on reducing the cost of spanwing new isolate will impact jit(debug) more than it will aot(release) configurations. * Newlines and spaces
This commit is contained in:
committed by
GitHub
parent
e6a7419603
commit
9f285aa9d9
@@ -0,0 +1,19 @@
|
||||
// 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(ReportedDurationTest(
|
||||
ReportedDurationTestFlavor.debug,
|
||||
'${flutterDirectory.path}/examples/image_list',
|
||||
'lib/main.dart',
|
||||
'com.example.image_list',
|
||||
RegExp(r'===image_list=== all loaded in ([\d]+)ms.'),
|
||||
).run);
|
||||
}
|
||||
@@ -10,6 +10,7 @@ import 'package:flutter_devicelab/tasks/perf_tests.dart';
|
||||
|
||||
Future<void> main() async {
|
||||
await task(ReportedDurationTest(
|
||||
ReportedDurationTestFlavor.release,
|
||||
'${flutterDirectory.path}/examples/image_list',
|
||||
'lib/main.dart',
|
||||
'com.example.image_list',
|
||||
|
||||
Reference in New Issue
Block a user