Skip to content

Benchmarks - Unit Testing Frameworks

Notifications You must be signed in to change notification settings

cpp-testing/ut-benchmark

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

111 Commits

Repository files navigation

Benchmarks - Unit Testing Frameworks

FrameworkVersionStandardLicenseLinkageTest configuration
Boost.Test1.71.0C++03Boost 1.0single header/librarystatic library
GoogleTest1.10.0C++11BSD-3librarystatic library
Catch2.10.2C++11Boost 1.0single headerCATCH_CONFIG_FAST_COMPILE
Doctest2.3.5C++11MITsingle headerDOCTEST_CONFIG_SUPER_FAST_ASSERTS
μt1.1.0C++20Boost 1.0single 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 

Releases

No releases published

Packages

No packages published