Skip to main content

microbench 0.4.0 copy "microbench: ^0.4.0" to clipboard
microbench: ^0.4.0 copied to clipboard

Zero-dependency microbenchmark harness for Dart: robust timing, comparison tables in Markdown, HTML or text, JSON output, and README embedding.

Use this package as an executable

Install it

You can install the package from the command line:

dart pub global activate microbench

Use it

The package has the following executables:

$ embed
$ exe
$ microbench

Use this package as a library

Depend on it

Run this command:

With Dart:

 $ dart pub add microbench

With Flutter:

 $ flutter pub add microbench

This will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get):

dependencies:
  microbench: ^0.4.0

Alternatively, your editor might support dart pub get or flutter pub get. Check the docs for your editor to learn more.

Import it

Now in your Dart code, you can use:

import 'package:microbench/microbench.dart';
1
likes
160
points
0
downloads

Documentation

API reference

Publisher

verified publisherbitanon.dev

Weekly Downloads

Zero-dependency microbenchmark harness for Dart: robust timing, comparison tables in Markdown, HTML or text, JSON output, and README embedding.

Homepage
Repository (GitHub)
View/report issues

Topics

#benchmark #performance #profiling #testing

Funding

Consider supporting this project:

paypal.me

License

BSD-3-Clause (license)

More

Packages that depend on microbench