Add bad scroller benchmark (#110362)
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
// 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_devicelab/framework/devices.dart';
|
||||
import 'package:flutter_devicelab/framework/framework.dart';
|
||||
import 'package:flutter_devicelab/tasks/perf_tests.dart';
|
||||
|
||||
Future<void> main() async {
|
||||
deviceOperatingSystem = DeviceOperatingSystem.ios;
|
||||
await task(createComplexLayoutScrollPerfTest(badScroll: true, enableImpeller: true));
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
// 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_devicelab/framework/devices.dart';
|
||||
import 'package:flutter_devicelab/framework/framework.dart';
|
||||
import 'package:flutter_devicelab/tasks/perf_tests.dart';
|
||||
|
||||
Future<void> main() async {
|
||||
deviceOperatingSystem = DeviceOperatingSystem.ios;
|
||||
await task(createComplexLayoutScrollPerfTest(badScroll: true));
|
||||
}
|
||||
@@ -23,12 +23,19 @@ String _testOutputDirectory(String testDirectory) {
|
||||
return Platform.environment['FLUTTER_TEST_OUTPUTS_DIR'] ?? '$testDirectory/build';
|
||||
}
|
||||
|
||||
TaskFunction createComplexLayoutScrollPerfTest({bool measureCpuGpu = true}) {
|
||||
TaskFunction createComplexLayoutScrollPerfTest({
|
||||
bool measureCpuGpu = true,
|
||||
bool badScroll = false,
|
||||
bool enableImpeller = false,
|
||||
}) {
|
||||
return PerfTest(
|
||||
'${flutterDirectory.path}/dev/benchmarks/complex_layout',
|
||||
'test_driver/scroll_perf.dart',
|
||||
badScroll
|
||||
? 'test_driver/scroll_perf_bad.dart'
|
||||
: 'test_driver/scroll_perf.dart',
|
||||
'complex_layout_scroll_perf',
|
||||
measureCpuGpu: measureCpuGpu,
|
||||
enableImpeller: enableImpeller,
|
||||
).run;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user