dart_benchmark 2.0.0 copy "dart_benchmark: ^2.0.0" to clipboard
dart_benchmark: ^2.0.0 copied to clipboard

A simple benchmarking library for Dart.

A simple benchmarking library for Dart.

Usage #

A simple usage example:

Future<void> main() async {
  await DartBenchmark('Slow Benchmark', () {
    return slowThingy();
  }, count: 3, warmup: false)
      .run(); // If you want to run synchronously use runSync.
}

Future<void> slowThingy() async {
  await Future.delayed(Duration(seconds: 1));
}

Features and bugs #

Please file feature requests and bugs at the issue tracker.

1
likes
130
pub points
18%
popularity

Publisher

unverified uploader

A simple benchmarking library for Dart.

Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-3-Clause (LICENSE)

Dependencies

quick_log

More

Packages that depend on dart_benchmark