mirror of
https://github.com/dart-lang/sdk
synced 2024-10-07 09:01:03 +00:00
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:
parent
7359264b13
commit
8f249569ad
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue