simplebench-runtime 1.0.3

Core runtime library for SimpleBench - a minimalist microbenchmarking framework
Documentation

SimpleBench Runtime - Core library for the SimpleBench microbenchmarking framework.

This crate provides the runtime components for SimpleBench:

  • Benchmark registration via the [SimpleBench] struct and inventory crate
  • Timing and measurement with warmup phases
  • Statistical analysis of benchmark results
  • Baseline storage and regression detection

Usage

This crate is typically used alongside simplebench-macros which provides the #[bench] attribute for easy benchmark registration:

use simplebench_macros::bench;

#[bench]
fn my_benchmark() {
    // code to benchmark
}

The cargo simplebench CLI tool handles compilation and execution of benchmarks.