FLUTTER ECOSYSTEM

benchmark_harness

The official Dart project benchmark harness.

Latest version
2.4.0
30-day downloads
71.2K
Likes
71
Pub points
140

Package Overview

Selection guidance generated from public package information. For reference only.

Overview

The official Dart project benchmark harness provides a standardized framework for writing and running performance benchmarks in Dart. It enables developers to measure execution time, memory usage, and other performance metrics with precision across multiple platforms. Designed for integration into Dart and Flutter projects, it supports consistent benchmarking on Android, iOS, Web, macOS, Windows, and Linux. The harness simplifies the creation of repeatable, reliable tests that help identify performance regressions and optimize code. It is particularly useful for core library development and performance-sensitive applications.

Use cases
  • Performance testing of Dart/Flutter code
  • Identifying performance regressions
  • Optimizing critical code paths
  • Benchmarking across multiple platforms
  • Core library performance evaluation
Key features
  • Cross-platform benchmark support
  • Precise timing measurements
  • Integration with Dart's testing ecosystem
  • Reproducible results
  • Built-in reporting utilities
Suitable for
  • Dart SDK contributors
  • Performance-critical app developers
  • Library maintainers
  • CI/CD pipeline integration
Considerations
  • Requires understanding of benchmarking best practices
  • Not intended for end-user testing
  • May need custom setup for complex scenarios
  • Results can vary based on environment
  • Best used in controlled testing environments
Supported platformsAndroidiOSWebmacOSWindowsLinux

Install package

flutter pub add benchmark_harness

Categories

Source repository

Related projects