Tweak counts for warm-ups and repeats.

Change-Id: I43c3eff0fee7ea551f268536334702bab521f798
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/222323
Reviewed-by: Samuel Rawlins <srawlins@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
This commit is contained in:
Konstantin Shcheglov 2021-12-07 21:08:59 +00:00 committed by Commit Bot
parent 7359264b13
commit 8f249569ad

View file

@ -33,7 +33,7 @@ class FlutterCompletionBenchmark extends Benchmark implements FlutterBenchmark {
);
@override
int get maxIterations => 2;
int get maxIterations => 1;
@override
Future<BenchMarkResult> run({
@ -243,12 +243,12 @@ class FlutterCompletionBenchmark extends Benchmark implements FlutterBenchmark {
// Perform warm-up.
// The cold start does not matter.
// The sustained performance is much more important.
const kWarmUpCount = 20;
const kWarmUpCount = 5;
for (var i = 0; i < kWarmUpCount; i++) {
await perform();
}
const kRepeatCount = 10;
const kRepeatCount = 5;
final timer = Stopwatch()..start();
for (var i = 0; i < kRepeatCount; i++) {
await perform();