measure method
- BenchmarkOptions options = BenchmarkOptions.standard
override
Measures this benchmark with options.
Implementation
@override
Future<Measurement> measure([
BenchmarkOptions options = BenchmarkOptions.standard,
]) async {
final s = _AsyncSession(this, options);
try {
await s.open();
await s.sample(options.duration.inMicroseconds);
} finally {
await s.close();
}
return s.measurement();
}