google-benchmark
« Back to VersTracker
Description:
C++ microbenchmark support library
Type: Formula  |  Tracked Since: Dec 28, 2025
Links: Homepage  |  formulae.brew.sh
Category: Developer tools
Tags: benchmarking c++ performance testing development
Install: brew install google-benchmark
About:
Google Benchmark is a microbenchmarking library for C++ that provides a simple API for writing benchmarks and a powerful framework for running them. It accurately measures the performance of small code snippets, helping developers identify bottlenecks and prevent performance regressions. The library supports custom timing, statistic reporting, and complex benchmark fixtures.
Key Features:
  • Simple, declarative API for defining benchmarks
  • Supports fixtures and custom timers
  • Cross-platform (Linux, macOS, Windows)
  • Rich reporting with statistical analysis
Use Cases:
  • Measuring performance of specific algorithms or functions
  • Comparing performance before and after code changes
  • Identifying performance bottlenecks in C++ applications
Alternatives:
  • Catch2 – Catch2 is primarily a unit testing framework but includes benchmarking capabilities; Google Benchmark is a dedicated benchmarking library with more advanced features.
  • hayai – hayai is a C++ benchmarking framework inspired by Google Benchmark but with a different API and feature set.
Version History
Detected Version Rev Change Commit
Sep 12, 2025 1:48pm 0 VERSION_BUMP 3ac73ea8
Oct 27, 2024 3:46pm 0 VERSION_BUMP 303e97b9