Simple, fast, accurate single-header microbenchmarking functionality for C++11/14/17/20
The main features of martinus/nanobench are: Benchmarking Tools, Testing and Benchmarking, Testing and Debugging.
Open-source alternatives to martinus/nanobench include: libnonius/nonius — A C++ micro-benchmarking framework. google/benchmark — This project is a performance measurement framework and microbenchmarking library designed for C++ and Python. It… digitalinblue/celero — C++ Benchmark Authoring Library/Framework. cpputest/cpputest — CppUTest unit testing and mocking framework for C/C++. cobaltfusion/debugviewpp — DebugView++, collects, views, filters your application logs, and highlights information that is important to you! boostorg/test — The reference C++ unit testing framework (TDD, xUnit, C++03/11/14/17).
This project is a performance measurement framework and microbenchmarking library designed for C++ and Python. It provides a toolset for measuring the execution time of small code fragments using high-resolution timers, calculating statistical aggregates, and analyzing asymptotic complexity. The framework distinguishes itself through specialized capabilities for multithreaded performance testing, using synchronized execution to measure parallel throughput. It includes mechanisms to prevent compiler optimizations from removing benchmarked code and supports complex parameterization via Cartesia
C++ Benchmark Authoring Library/Framework
Catch2 is a comprehensive framework for C++ software validation, providing an environment for unit testing, integration verification, and performance analysis. It enables developers to define and execute automated test suites and micro-benchmarks directly within their applications. The framework is distinguished by its header-only distribution, which allows for integration into existing build systems without requiring complex external dependencies. It utilizes a hierarchical section-based execution model that supports behavior-driven testing, allowing for shared setup and teardown logic acros