Skip to content
⌘K

nanobench

Simple, fast, accurate single-header microbenchmarking functionality for C++11/14/17/20.

health 27contrib –1.8k

Overview & architecture

C++ standard
C++11
Build systems
–
License
MIT
Languages
C++
Last release
v4.6.0 · Aug 14, 2026

Repository activity

snapshot Nov 23, 2026
GitHub stars
latest
1.8k▲ 9
Merged PRs (30d)
latest
0
Contributors (90d)
latest
1
Issue first response p50
–
No snapshots yet.
0 open issues0 open PRs0 commits (30d)

Recent notable activity

  • Release
    nanobench v4.6.0

    A minor release: one backwards-compatible feature, and a fix for a platform that did not compile at all. Added Bench::compare() — compares any number of alternatives against each other, paired and interleaved, instead of one run entirely before another. cpp ankerl::nanobench::Bench().epochs(52).compare(…

    Martin Leitner-Ankerlv4.6.0
  • Release
    nanobench v4.5.0

    A minor release: two backwards-compatible features have landed since v4.4.0, along with three fixes and the packaging work a distribution formula needs. Fixed Each output stream gets its own table header state (#112). Two Bench objects writing to different streams overwrote each other's settings, and the second table…

    Martin Leitner-Ankerlv4.5.0
  • Release
    nanobench v4.4.0

    First release since v4.3.11 in February 2023. Most of what's here is correctness work on the measurement path itself, so some numbers will change — see below before you compare against older results. Measurements are more accurate Six defects found while auditing the measurement path. These change reported numbers,…

    Martin Leitner-Ankerlv4.4.0
  • Release
    nanobench v4.3.11

    Direct download: nanobench.h What's Changed Check for failures in parseFile(), perf events tweaks by @tommi-cujo in Workaround missing noexcept for std::string move assignment by @tommi-cujo in removed the link by @martinus in Lots of minor cleanups by @martinus in Add linter for version & clang-format. Updated…

    Martin Leitner-Ankerlv4.3.11
  • Release
    nanobench v4.3.10

    Direct download: nanobench.h What's Changed clang-tidy improvements, recreate documentation by @martinus in Full Changelog:

    Martin Leitner-Ankerlv4.3.10
  • Release
    nanobench v4.3.9

    Direct download: nanobench.h Fixed #80 - truncation warning for containers with 32bit index with Rng::shuffle Full Changelog:

    Martin Leitner-Ankerlv4.3.9
  • Release
    nanobench v4.3.8

    Direct download: nanobench.h What's Changed Update index.rst by @cozycactus in Enable perf counters on older kernels by @chipot in Fix typos in docs by @tocic in Add support for custom information per benchmark run by @jonas-schulze in Fix some typos by @jonas-schulze in New Contributors @cozycactus made their first…

    Martin Leitner-Ankerlv4.3.8
  • Release
    nanobench v4.3.7

    Direct download: nanobench.h Documentation updates Raise minimum epoch time to 1ms What's Changed Add option to install library via cmake by @fferflo in Simplify documentation around benchmark comparison by @vadi2 in New Contributors @fferflo made their first contribution in @vadi2 made their first contribution in…

    Martin Leitner-Ankerlv4.3.7
  • Release
    nanobench v4.3.6

    Direct download: nanobench.h linux: Check for kernel >= 3.14 to enable performance counters added a few sanitizer suppressions regenerated documentation with latest releases of sphinx etc. What's Changed Update README.md by @Tridacnid in New Contributors @Tridacnid made their first contribution in Full Changelog:

    Martin Leitner-Ankerlv4.3.6
  • Release
    nanobench v4.3.5

    Direct download: nanobench.h Undo incorrect "fix" for old linux headers. If compilation does not work with very old linux headers, define the macro ANKERL_NANOBENCH_DISABLE_PERF_COUNTERS.

    Martin Leitner-Ankerlv4.3.5

Stories

ReleaseFor you

nanobench v4.6.0 released

A minor release: one backwards-compatible feature, and a fix for a platform that did not compile at all. Added Bench::compare() — compares any number of alternatives against each other, paired and interleaved, instead of one run entirely before another. cpp…

Why it matters: nanobench is in Observability & Tools (one of your focus areas).

ReleaseFor you

nanobench v4.5.0 released

A minor release: two backwards-compatible features have landed since v4.4.0, along with three fixes and the packaging work a distribution formula needs. Fixed Each output stream gets its own table header state (#112). Two Bench objects writing to different streams overwrote each other's settings…

Why it matters: nanobench is in Observability & Tools (one of your focus areas).

ReleaseFor you

nanobench v4.4.0 released

First release since v4.3.11 in February 2023. Most of what's here is correctness work on the measurement path itself, so some numbers will change — see below before you compare against older results. Measurements are more accurate Six defects found while auditing the measurement path. These change…

Why it matters: First release in 42 months. nanobench is in Observability & Tools (one of your focus areas).

Maintainers & organizations

every claim links to its source

Maintainers

Top contributors

Releases & changelog

  • nanobench v4.6.0major

    A minor release: one backwards-compatible feature, and a fix for a platform that did not compile at all. Added Bench::compare() — compares any number of alternatives against each other, paired and interleaved, instead of one run entirely before another. cpp ankerl::nanobench::Bench().epochs(52).compare(…

  • nanobench v4.5.0major

    A minor release: two backwards-compatible features have landed since v4.4.0, along with three fixes and the packaging work a distribution formula needs. Fixed Each output stream gets its own table header state (#112). Two Bench objects writing to different streams overwrote each other's settings, and the second table…

  • nanobench v4.4.0major

    First release since v4.3.11 in February 2023. Most of what's here is correctness work on the measurement path itself, so some numbers will change — see below before you compare against older results. Measurements are more accurate Six defects found while auditing the measurement path. These change reported numbers,…

  • nanobench v4.3.11

    Direct download: nanobench.h What's Changed Check for failures in parseFile(), perf events tweaks by @tommi-cujo in Workaround missing noexcept for std::string move assignment by @tommi-cujo in removed the link by @martinus in Lots of minor cleanups by @martinus in Add linter for version & clang-format. Updated…

  • nanobench v4.3.10

    Direct download: nanobench.h What's Changed clang-tidy improvements, recreate documentation by @martinus in Full Changelog:

  • nanobench v4.3.9

    Direct download: nanobench.h Fixed #80 - truncation warning for containers with 32bit index with Rng::shuffle Full Changelog:

  • nanobench v4.3.8

    Direct download: nanobench.h What's Changed Update index.rst by @cozycactus in Enable perf counters on older kernels by @chipot in Fix typos in docs by @tocic in Add support for custom information per benchmark run by @jonas-schulze in Fix some typos by @jonas-schulze in New Contributors @cozycactus made their first…

  • nanobench v4.3.7

    Direct download: nanobench.h Documentation updates Raise minimum epoch time to 1ms What's Changed Add option to install library via cmake by @fferflo in Simplify documentation around benchmark comparison by @vadi2 in New Contributors @fferflo made their first contribution in @vadi2 made their first contribution in…

  • nanobench v4.3.6

    Direct download: nanobench.h linux: Check for kernel >= 3.14 to enable performance counters added a few sanitizer suppressions regenerated documentation with latest releases of sphinx etc. What's Changed Update README.md by @Tridacnid in New Contributors @Tridacnid made their first contribution in Full Changelog:

  • nanobench v4.3.5

    Direct download: nanobench.h Undo incorrect "fix" for old linux headers. If compilation does not work with very old linux headers, define the macro ANKERL_NANOBENCH_DISABLE_PERF_COUNTERS.

Contribution opportunities

0 published

No published opportunities

Cards are published only for real, open, unassigned issues with maintainer engagement. Contribution scanning is off for this project.

Why this score

Health 27Contribution friendliness –computed 20h ago
  • Activity0.00
    0 merged PRs in 30 days (full marks at 20); 0 commits in 30 days (full marks at 60) [health score: no data for maintainer responsiveness, backlog pressure; weights renormalized]health
  • Onboarding0.25
    has CI; missing contributing guide, mainstream build (CMake/Bazel/Meson), docs sitecontrib
  • Release cadence0.91
    last release 100 days ago (full marks within 90, zero after 730); 3 releases in 365 days (full marks at 4) [health score: no data for maintainer responsiveness, backlog pressure; weights renormalized]health
  • Contributor breadth0.03
    top contributor has 93% of commits; stars count for at most 5% of this signal [health score: no data for maintainer responsiveness, backlog pressure; weights renormalized]health

Each signal is normalized to 0–1 with fixed thresholds; scores are weighted sums × 100. Stars are not an input.