cpp-testing / ut-benchmark

Benchmarks - Unit Testing Frameworks

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Benchmarks - Unit Testing Frameworks

Framework Version Standard License Linkage Test configuration
Boost.Test 1.71.0 C++03 Boost 1.0 single header/library static library
GoogleTest 1.10.0 C++11 BSD-3 library static library
Catch 2.10.2 C++11 Boost 1.0 single header CATCH_CONFIG_FAST_COMPILE
Doctest 2.3.5 C++11 MIT single header DOCTEST_CONFIG_SUPER_FAST_ASSERTS
μt 1.1.0 C++20 Boost 1.0 single header/module
Include / 0 tests, 0 asserts, 1 cpp file
Assert / 1 test, 1'000'000 asserts, 1 cpp file
Test / 1'000 tests, 0 asserts, 1 cpp file
Suite / 10'000 tests, 0 asserts, 100 cpp files
Suite+Assert / 10'000 tests, 40'000 asserts, 100 cpp files
Suite+Assert+STL / 10'000 tests, 20'000 asserts, 100 cpp files
Incremental Build - Suite+Assert+STL / 1 cpp file change (1'000 tests, 20'000 asserts, 100 cpp files)
Suite+Assert+STL / 10'000 tests, 20'000 asserts, 100 cpp files
(Headers vs Precompiled headers vs C++20 Modules)

To run benchmarks

cd benchmarks && ./bench.sh

About

Benchmarks - Unit Testing Frameworks


Languages

Language:C++ 99.8%Language:C 0.2%Language:HTML 0.0%Language:M4 0.0%Language:Shell 0.0%Language:Makefile 0.0%Language:Perl 0.0%Language:Batchfile 0.0%Language:CMake 0.0%