Add remaining benchmarks (#62906)

This commit is contained in:
Tianguang 2020-08-05 18:31:08 +02:00 committed by GitHub
parent 263de65f48
commit ce1cfbe71d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -72,6 +72,18 @@ final Map<String, RecorderFactory> benchmarks = <String, RecorderFactory>{
benchmarkName: '${_galleryBenchmarkPrefix}_studies_perf',
shouldRunPredicate: (String demo) => typeOfDemo(demo) == DemoType.study,
),
'${_galleryBenchmarkPrefix}_unanimated_perf': () => GalleryRecorder(
benchmarkName: '${_galleryBenchmarkPrefix}_unanimated_perf',
shouldRunPredicate: (String demo) => typeOfDemo(demo) == DemoType.unanimatedWidget,
),
'${_galleryBenchmarkPrefix}_animated_perf': () => GalleryRecorder(
benchmarkName: '${_galleryBenchmarkPrefix}_animated_perf',
shouldRunPredicate: (String demo) => typeOfDemo(demo) == DemoType.animatedWidget,
),
'${_galleryBenchmarkPrefix}_scroll_perf': () => GalleryRecorder(
benchmarkName: '${_galleryBenchmarkPrefix}_scroll_perf',
testScrollsOnly: true,
),
},
};