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