Skip to content
pubscout

benchmarking

0.6.1, released 5 years ago by intinio.com

Tools to run sync and async benchmarks with ease and control.

WASM-ready
$ flutter pub add benchmarking
Source repository

What it does

Provides a class-based and functional interface to measure the performance of your code. Handles both simple micro-benchmarks and complex ones with setup and teardown functions.

AI-written summary of version 0.6.1, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You need to measure the performance of synchronous code.
  • You need to measure the performance of asynchronous code.
  • You want to compare performance implementations using functional or class-based definitions.

Skip it when

  • You are writing standard unit or widget tests rather than performance measurements.

Strengths

  • First-class support for both sync and async code
  • Offers both functional and class-based interfaces
  • Supports setup and teardown functions for complex benchmarks

Weaknesses

  • Limited built-in topics or advanced ecosystem features documented

Setup

Kind
Pure Dart
Effort
Low
Code generation
No
Direct dependencies
1

not documented

void main () {
  syncBenchmark('Map[k]', () => {}).report();
}