remove frame policy benchmark. (#163245)

This benchmark is a benchmark of the integration test binding which IMO
is not that important given that we continue to rely on flutter_driver
for actual performance metrics.
This commit is contained in:
Jonah Williams
2025-02-13 12:26:04 -08:00
committed by GitHub
parent ce659cda5e
commit 89311b7600
6 changed files with 0 additions and 182 deletions

View File

@@ -1,12 +0,0 @@
// 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.android;
await task(createFramePolicyIntegrationTest());
}

View File

@@ -534,51 +534,6 @@ TaskFunction createsScrollSmoothnessPerfTest() {
};
}
TaskFunction createFramePolicyIntegrationTest() {
final String testDirectory = '${flutterDirectory.path}/dev/benchmarks/macrobenchmarks';
const String testTarget = 'test/frame_policy.dart';
return () {
return inDirectory<TaskResult>(testDirectory, () async {
final Device device = await devices.workingDevice;
await device.unlock();
final String deviceId = device.deviceId;
await flutter('packages', options: <String>['get']);
await flutter(
'drive',
options: <String>[
'--no-android-gradle-daemon',
'-v',
'--verbose-system-logs',
'--profile',
'-t',
testTarget,
'-d',
deviceId,
],
);
final Map<String, dynamic> data =
json.decode(
file(
'${testOutputDirectory(testDirectory)}/frame_policy_event_delay.json',
).readAsStringSync(),
)
as Map<String, dynamic>;
final Map<String, dynamic> fullLiveData = data['fullyLive'] as Map<String, dynamic>;
final Map<String, dynamic> benchmarkLiveData = data['benchmarkLive'] as Map<String, dynamic>;
final Map<String, dynamic> dataFormatted = <String, dynamic>{
'average_delay_fullyLive_millis': fullLiveData['average_delay_millis'],
'average_delay_benchmarkLive_millis': benchmarkLiveData['average_delay_millis'],
'90th_percentile_delay_fullyLive_millis': fullLiveData['90th_percentile_delay_millis'],
'90th_percentile_delay_benchmarkLive_millis':
benchmarkLiveData['90th_percentile_delay_millis'],
};
return TaskResult.success(dataFormatted, benchmarkScoreKeys: dataFormatted.keys.toList());
});
};
}
TaskFunction createOpacityPeepholeOneRectPerfE2ETest() {
return PerfTest.e2e(
'${flutterDirectory.path}/dev/benchmarks/macrobenchmarks',