# nvzqz/divan

Fast and simple benchmarking for Rust projects

Repository: https://github.com/nvzqz/divan
Canonical: https://ross.abutalabs.com/products/divan
Homepage: https://nikolaivazquez.com/blog/divan/
Language: Rust
License: Apache-2.0
License Family: permissive
Topics: benchmark, fast, rust, simple, performance
Last push: 2026-07-19T21:31:51+00:00

## Health v2 (maintenance only)
Score: 70/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 93, release rhythm 35, longevity 82
- inputs: {"age_days": 1160, "days_push": 45, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1442, forks 43 (observed 2026-08-28T04:04:44.784147+00:00)

## What it is
Divan is a fast and simple benchmarking library for Rust projects, used via a #[divan::bench] attribute and cargo bench. It offers allocation profiling, generic parameter benchmarking, thread contention insights, and statistical output.

## Use cases
- benchmark rust functions
- measure memory allocations in rust code
- compare performance of generic rust functions
- run benchmarks in CI
- find an alternative to criterion.rs
- profile thread contention in rust

## When to choose
- you want a simpler, faster benchmarking API than Criterion
- you need allocation and throughput metrics out of the box
- you benchmark generic functions with multiple parameter cases
- you want quick benchmark runs suitable for CI

## When to avoid
- you need Criterion's mature statistical analysis and HTML reports
- you are not working in Rust
- you need flamegraph-style CPU profiling rather than benchmarking

## Facets
- artifact type: library
- maturity: active
- function: benchmarking, developer-tools
- domain: developer-tools, performance, programming-languages
- platform: rust, cli, cross-platform
- tags: rust-benchmarking, criterion-alternative, allocation-profiling, cargo-bench, statistics

## Member repositories
- nvzqz/divan (main) score 70

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:44.784147+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T04:36:24.931167+00:00, confidence not recorded.
  - readme: https://github.com/nvzqz/divan (fetched 2026-08-28T04:04:44.784147+00:00, sha 71fb4cf74731)
  - homepage: https://nikolaivazquez.com/blog/divan/ (fetched 2026-08-29T11:46:36.203078+00:00, sha 4a4c88dad682)
  - site_page: https://nikolaivazquez.com/about (fetched 2026-08-29T11:46:36.206359+00:00, sha e66f185e1025)
  - registry_crates: https://crates.io/api/v1/crates/divan (fetched 2026-08-29T11:46:36.208148+00:00, sha d5e1457b2f1a)
- Data as of 2026-08-30T08:39:29.467469+00:00.
