benchmark library

A full featured library for writing and running Dart benchmarks.

Functions

benchmark(String name, void callback(), {int iterations = 10, Duration duration = const Duration(seconds: 2)}) → void
Creates a new benchmark with the given name and callback.
group(String name, void callback()) → void
Creates a group of benchmarks.
measure() → void
reset() → void
setUp(void callback()) → void
Registers a function to be run before the benchmarks.
setUpAll(void callback()) → void
Registers a function to be run once before all benchmarks.
setUpEach(void callback()) → void
Register a function to be run before each iteration of a benchmark.
tearDown(void callback()) → void
Register a function to be run after each iteration of a benchmark.
tearDownAll(void callback()) → void
Registers a function to be run once after all benchmarks.
tearDownEach(void callback()) → void
Registers a function to be run after benchmarks.