Skip to content

microbench guides

Start with the first two guides if you have a Dart project and a function you want to time. If you already have a suite, jump to the question that brought you here.

Level Guide What you will do
Beginner Your first benchmark Compare three implementations, run the suite, and verify their results.
Beginner Reading the results Read rates, baseline ratios, sample spread, and warnings.
Intermediate Designing comparisons Choose an API, measure async work, and compare several input sizes.
Intermediate Getting trustworthy numbers Decide what belongs inside the timer and choose a runtime and timing budget.
Advanced Reports and regression checks Save comparable runs, interpret a diff, and use its exit status in CI.
Advanced Working with comparison tables Assemble groups and columns, inspect individual cells, and customize output.

Bringing an existing suite? Migrating from benchmark_harness maps classes and lifecycle hooks and explains how the unit of measurement changes.