You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
burn-bench is a benchmarking repository for Burn. It helps
track performance across different hardware and software configurations, making it easier to
identify regressions, improvements, and the best backend for a given workload.
Structure
backend-comparison/: Benchmarks for backend performance, ranging from individual tensor
operations to full forward and backward passes for a given model.
burnbench/: The core benchmarking crate and CLI. Can be used as a standalone tool or
integrated as a library to define and run custom benchmark suites.
(Future)integration-tests/: TBD. We'd like to add more tests to capture more complex
workloads, including evaluation of model convergence, metrics, and overall training performance.
Getting Started
To run backend performance benchmarks, use the burnbench CLI:
cargo run --release --bin burnbench -- run --benches unary --backends wgpu-fusion
Or use the shorthand alias:
cargo bb run -b unary -B wgpu-fusion
This will use the main branch of Burn by default.
To benchmark performance across version(s):
cargo bb run -b unary -B wgpu-fusion -V 0.18.0 main local
You can specify one or more versions and provide custom burnbench arguments to benchmark them.
The versions can be one of:
Published version (e.g., 0.18.0)
Git branch (e.g., main)
Git commit hash
local
By default, the local version points to a relative path for the Burn repo directory (../../burn
relative to backend-comparison/). This can be modified via the BURN_BENCH_BURN_DIR environment
variable.