# google/benchmark

A microbenchmark support library

Repository: https://github.com/google/benchmark
Canonical: https://ross.abutalabs.com/products/benchmark
Language: C++
License: Apache-2.0
License Family: permissive
Topics: benchmark
Last push: 2026-08-26T08:23:54+00:00

## Health v2 (maintenance only)
Score: 83/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 99, release rhythm 54, longevity 100
- inputs: {"age_days": 4648, "days_push": 7, "days_rel": 224, "gap_med": 79.0, "n_releases_24m": 5}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 10370, forks 1793 (observed 2026-08-28T04:10:41.822080+00:00)

## What it is
Google Benchmark is a C++ microbenchmarking library for timing small code snippets, with an API similar to unit test frameworks. It supports registration macros, parameterized benchmarks, and Python bindings for result analysis.

## Use cases
- benchmark c++ functions
- measure performance of code snippets
- compare performance of implementations
- write microbenchmarks like unit tests
- profile hot code paths
- generate benchmark reports

## When to choose
- you need accurate, statistically robust microbenchmarks in C++
- you want a unit-test-like API for benchmarking
- you need cross-platform C++ performance measurement

## When to avoid
- you need end-to-end or load testing rather than microbenchmarks
- you are benchmarking Python or JavaScript code natively
- you need profiling with flamegraphs rather than timing

## Facets
- artifact type: library
- maturity: stable
- function: benchmarking, testing
- domain: developer-tools, performance
- platform: cpp, cross-platform, python
- tags: microbenchmark, performance-measurement, c++

## Member repositories
- google/benchmark (main) score 83

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:10:41.822080+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-29T17:19:06.300360+00:00, confidence not recorded.
  - readme: https://github.com/google/benchmark (fetched 2026-08-28T04:10:41.822080+00:00, sha c68989b89511)
- Data as of 2026-08-30T08:39:29.467469+00:00.
