AsyncBenchmark.from constructor
AsyncBenchmark.from(})
Wraps run as a benchmark, with optional untimed setup and
teardown.
Implementation
factory AsyncBenchmark.from(
String name,
Future<Object?> Function() run, {
int size,
Future<void> Function()? setup,
Future<void> Function()? teardown,
}) = _FunctionAsyncBenchmark;