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:
parent
a9047e93bc
commit
661f53ddd4
@ -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();
|
||||
}
|
||||
|
@ -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();
|
||||
}
|
||||
|
@ -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();
|
||||
}
|
||||
|
@ -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();
|
||||
}
|
||||
|
@ -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();
|
||||
}
|
||||
|
@ -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();
|
||||
}
|
||||
|
@ -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());
|
||||
}
|
||||
|
@ -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();
|
||||
}
|
||||
|
@ -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();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user