reproducible
reproducible is a Rust library for generating reproducible accuracy and benchmark reports.
It is designed to:
- work with any Rust crate (no project-specific assumptions),
- be quick to set up,
- stay customizable for advanced workflows.
Installation
Quick Start
use *;
use metrics;
// 1. Define the functions we want to evaluate
let fn_add = ;
let fn_sub = ;
// 2. Compose the report
let report = new
// Add columns for metrics and statistics
.with_column
.with_column
.with_column
// Add rows corresponding to each function you want to evaluate
.with_row
.with_row;
println!;
Features
- Fluent API: Compose reports with a declarative builder pattern.
- Accuracy Metrics: Evaluate functions against test cases with built-in or custom metrics.
- Criterion Integration: Automatically pull benchmark results from Criterion's output directory.
- CSV Support: Load test cases directly from CSV files.
- Customizable Rendering: Control precision, scientific notation, and table styles (Markdown, Modern, Sharp, etc.).
Examples
See the examples/ directory for more details:
basic.rs: Core functionality and reporting.csv_loading.rs: Loading test cases from external files.