forked from firka/flutter
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:
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user