Add back main() methods to benchmark benches. (#156083)

Dart performance suite needs this since it builds and launches those flutter benchmarks independently

Cf. https://github.com/flutter/flutter/pull/154446
This commit is contained in:
Alexander Aprelev 2024-10-02 16:23:47 -07:00 committed by GitHub
parent a9047e93bc
commit 661f53ddd4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
9 changed files with 63 additions and 0 deletions

View File

@ -136,3 +136,10 @@ Future<void> execute() async {
);
printer.printToStdout();
}
//
// Note that the benchmark is normally run by benchmark_collection.dart.
//
Future<void> main() async {
return execute();
}

View File

@ -28,3 +28,10 @@ Future<void> execute() async {
);
printer.printToStdout();
}
//
// Note that the benchmark is normally run by benchmark_collection.dart.
//
Future<void> main() async {
return execute();
}

View File

@ -49,3 +49,10 @@ Future<void> execute() async {
);
printer.printToStdout();
}
//
// Note that the benchmark is normally run by benchmark_collection.dart.
//
Future<void> main() async {
return execute();
}

View File

@ -57,3 +57,10 @@ Future<void> execute() async {
printer.printToStdout();
}
//
// Note that the benchmark is normally run by benchmark_collection.dart.
//
Future<void> main() async {
return execute();
}

View File

@ -89,3 +89,10 @@ int sumIterable(Iterable<int> values) {
}
return result;
}
//
// Note that the benchmark is normally run by benchmark_collection.dart.
//
Future<void> main() async {
return execute();
}

View File

@ -117,3 +117,10 @@ Iterable<InlineSpanSemanticsInformation> combineSemanticsInfoList(List<InlineSpa
assert(workingLabel != null);
return result;
}
//
// Note that the benchmark is normally run by benchmark_collection.dart.
//
Future<void> main() async {
return execute();
}

View File

@ -90,3 +90,10 @@ Future<void> execute(BenchmarkingBinding binding) async {
}
printer.printToStdout();
}
//
// Note that the benchmark is normally run by benchmark_collection.dart.
//
Future<void> main() async {
return execute(BenchmarkingBinding());
}

View File

@ -65,3 +65,10 @@ Future<void> execute() async {
);
printer.printToStdout();
}
//
// Note that the benchmark is normally run by benchmark_collection.dart.
//
Future<void> main() async {
return execute();
}

View File

@ -60,3 +60,10 @@ Future<void> execute() async {
);
printer.printToStdout();
}
//
// Note that the benchmark is normally run by benchmark_collection.dart.
//
Future<void> main() async {
return execute();
}