Description
hayai is a C++ framework for writing benchmarks for pieces of code along the lines of the normal approach for unit testing using frameworks such as googletest.
hayai alternatives and similar libraries
Based on the "Debug" category.
Alternatively, view hayai alternatives based on common mentions on social networks and blogs.
-
Catch
A modern, C++-native, test framework for unit-tests, TDD and BDD - using C++14, C++17 and later (C++11 support is in v2.x branch, and C++03 on the Catch1.x branch) -
doctest
The fastest feature-rich C++11/14/17/20/23 single-header testing framework -
GDBFrontend
☕ GDBFrontend is an easy, flexible and extensible gui debugger. Try it on https://debugme.dev -
Boost.Test
The reference C++ unit testing framework (TDD, xUnit, C++03/11/14/17)
Access the most powerful time series database as a service
* Code Quality Rankings and insights are calculated and provided by Lumnify.
They vary from L1 to L5 with "L5" being the highest.
Do you think we are missing an alternative of hayai or a related project?
Popular Comparisons
README
hayai - the C++ benchmarking framework.
hayai is a C++ framework for writing benchmarks for pieces of code along the lines of the normal approach for unit testing using frameworks such as googletest. For information on the origin of and how to use hayai, please read the introductory blog post until I have the time to write a proper README.
Installing hayai
hayai releases are made available for Mac OS X in Homebrew and for Ubuntu LTS releases in an Ubuntu PPA.
To install from Homebrew on Mac OS X:
$ brew install hayai
To install from the Ubuntu PPA:
$ apt-add-repository ppa:bruun/hayai
$ apt-get update
$ apt-get install libhayai-dev
Building hayai
hayai is fully header based, but to use the simple main
function as described in the introducty blog post, the source code must be compiled to provide libhayai_main
. Compiling the source code requires CMake
to be present on the system:
$ cd hayai
$ cmake .
$ make
This will also build the sample available in the sample/
directory of the repository.
Developing hayai
hayai includes a (currently not at all very comprehensive) test suite for development. To use the test suite, pass a boolean true value as the BUILD_HAYAI_TESTS
CMake variable:
$ cd hayai
$ cmake -DBUILD_HAYAI_TESTS=true .
$ make
$ make test