Add a microbenchmark that measures performance of flutter compute. (#91257)

* Add a microbenchmark that measures performance of flutter compute.

This benchmark should show performance improvements when compute is switched to Isolate.exit

* Fix analyzer warnings, increase warmup iterations

* Fix license header
This commit is contained in:
Alexander Aprelev
2021-10-04 14:16:23 -07:00
committed by GitHub
parent 35fe52cb86
commit 98120d19d3
2 changed files with 50 additions and 0 deletions

View File

@@ -54,6 +54,7 @@ TaskFunction createMicrobenchmarkTask() {
...await _runMicrobench('lib/gestures/velocity_tracker_bench.dart'),
...await _runMicrobench('lib/gestures/gesture_detector_bench.dart'),
...await _runMicrobench('lib/stocks/animation_bench.dart'),
...await _runMicrobench('lib/language/compute_bench.dart'),
...await _runMicrobench('lib/language/sync_star_bench.dart'),
...await _runMicrobench('lib/language/sync_star_semantics_bench.dart'),
...await _runMicrobench('lib/foundation/all_elements_bench.dart'),