Run analysis benchmarks twice on Windows builder

The Windows builder analyzer-win-release is waiting for shards
to complete after running the analysis server benchmarks, so we
can run the benchmarks twice to get more better results.

Bug: b/74375756
Change-Id: I03f459aece293a7e0b0eed3f4c52c037e2d9641c
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/290061
Reviewed-by: Alexander Thomas <athom@google.com>
This commit is contained in:
William Hesse
2023-03-21 10:11:23 +00:00
parent d7d0ffad66
commit 84f9338346
@@ -16,11 +16,15 @@
import 'dart:convert';
import 'dart:io';
void main() async {
const countRuns = 2;
void main(List<String> args) async {
try {
final results = <Map<String, dynamic>>[];
results.addAll(await runBenchmarks(warm: true));
results.addAll(await runBenchmarks(warm: false));
for (int i = 0; i < countRuns; ++i) {
results.addAll(await runBenchmarks(warm: true));
results.addAll(await runBenchmarks(warm: false));
}
if (!Platform.isWindows) {
print("Analyzer benchmark uploads only run on Windows");