[devicelab] boot up benchmarks. (#132148)

Enable Impeller benchmarks for drawAtlas/drawVertices on iOS/Metal, Android/GLES, and Android/Vulkan.

Enable impeller tessellation benchmarks on iOS/Metal and Android/Vulkan - not GLES as this is measuring backend agnostic performance.
This commit is contained in:
Jonah Williams
2023-08-14 11:47:08 -07:00
committed by GitHub
parent 6d87a23b37
commit f7bd03202f
13 changed files with 307 additions and 0 deletions

View File

@@ -672,6 +672,56 @@ TaskFunction createDrawPointsPerfTest({
).run;
}
TaskFunction createDrawAtlasPerfTest({
bool? forceOpenGLES,
}) {
return PerfTest(
'${flutterDirectory.path}/dev/benchmarks/macrobenchmarks',
'test_driver/run_app.dart',
'draw_atlas_perf',
enableImpeller: true,
testDriver: 'test_driver/draw_atlas_perf.dart',
saveTraceFile: true,
forceOpenGLES: forceOpenGLES,
).run;
}
TaskFunction createDrawVerticesPerfTest({
bool? forceOpenGLES,
}) {
return PerfTest(
'${flutterDirectory.path}/dev/benchmarks/macrobenchmarks',
'test_driver/run_app.dart',
'draw_vertices_perf',
enableImpeller: true,
testDriver: 'test_driver/draw_vertices_perf_test.dart',
saveTraceFile: true,
forceOpenGLES: forceOpenGLES,
).run;
}
TaskFunction createPathTessellationStaticPerfTest() {
return PerfTest(
'${flutterDirectory.path}/dev/benchmarks/macrobenchmarks',
'test_driver/run_app.dart',
'tessellation_perf_static',
enableImpeller: true,
testDriver: 'test_driver/path_tessellation_static_perf_test.dart',
saveTraceFile: true,
).run;
}
TaskFunction createPathTessellationDynamicPerfTest() {
return PerfTest(
'${flutterDirectory.path}/dev/benchmarks/macrobenchmarks',
'test_driver/run_app.dart',
'tessellation_perf_dynamic',
enableImpeller: true,
testDriver: 'test_driver/path_tessellation_dynamic_perf_test.dart',
saveTraceFile: true,
).run;
}
TaskFunction createAnimatedComplexOpacityPerfE2ETest({
bool? enableImpeller,
}) {