| Crates.io | qr_benchmark |
| lib.rs | qr_benchmark |
| version | 0.1.0 |
| created_at | 2025-12-25 02:20:31.642471+00 |
| updated_at | 2025-12-25 02:20:31.642471+00 |
| description | A benchmarking suite for Rust QR code decoding libraries |
| homepage | |
| repository | https://github.com/cypressf/qr_benchmark |
| max_upload_size | |
| id | 2004099 |
| size | 159,626 |
A benchmarking suite for Rust QR code decoding libraries.
To use the zbar feature (enabled by default), you need to have the ZBar C library installed on your system.
macOS:
brew install zbar
Ubuntu/Debian:
sudo apt-get install libzbar-dev
Fedora:
sudo dnf install zbar-devel
Run the benchmark with default settings:
cargo run --bin qr_benchmark
-l, --libs <LIBS>: Specific libraries to benchmark (e.g., -l rqrr -l rxing).-n, --iterations <ITERATIONS>: Number of iterations per image (default: 5).-c, --categories <CATEGORIES>: Specific categories to benchmark (e.g., -c blurred).-o, --output <OUTPUT>: Path to the output CSV file (default: raw_measurements.csv).cargo run --bin qr_benchmark -- --categories blurred --libs rqrr --iterations 10
You can use qr_benchmark as a library to benchmark your own decoder. Implement the QrDecoder trait and run the benchmark suite.
See examples/custom_decoder.rs for a complete example.
To generate performance visualizations from the benchmark results:
cargo run --bin analyze