Hexer10 / dart_benchmark

A simple banchmarking library for Dart.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

About

A simple banchmarking library for Dart.

License:BSD 3-Clause "New" or "Revised" License


Languages

Language:Dart 100.0%