libtap VS benchmark

Compare libtap vs benchmark and see what are their differences.


Write tests in C (by zorgnax)


A microbenchmark support library (by google)
Our great sponsors
  • Scout APM - Less time debugging, more time building
  • OPS - Build and Run Open Source Unikernels
  • SonarLint - Deliver Cleaner and Safer Code - Right in Your IDE of Choice!
libtap benchmark
0 11
213 6,109
- 2.6%
0.0 8.9
4 months ago about 7 hours ago
C C++
GNU Lesser General Public License v3.0 only Apache License 2.0
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.


Posts with mentions or reviews of libtap. We have used some of these posts to build our list of alternatives and similar projects.

We haven't tracked posts mentioning libtap yet.
Tracking mentions began in Dec 2020.


Posts with mentions or reviews of benchmark. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2021-10-23.
  • How to identify inefficient method calls?
    1 project | | 27 Nov 2021
    If you are uncertain about the performance characteristics of a function you should ALWAYS benchmark it. Googles Benchmark library is wonderful for quick micro benchmarks. For more complex things, perhaps look into profiling and then look at invocation counts of copy constructors.
  • Is there any fast allocator in std lib / boost for fixed size objects (not at compile time) but has deallocation methods?
    1 project | | 6 Nov 2021
    Your compiler may be optimising away your loop, there. I typically use a micro-benchmarking tool for these types of tests. You could try Google Benchmark. It’s available in most OS’ package managers, but pretty easy to build from source if not
  • Calculate Your Code Performance
    5 projects | | 23 Oct 2021
    C++: C++ has quite a number of benchmarking libraries some of the recent ones involving C++ 20's flexibility. The most notable being Google Bench and UT. C does not have many specific benchmarking libraries, but you can easily integrate C code with C++ benchmarking libraries in order to test the performance of your C code.
  • What's Wrong with My Benchmark Results?
    1 project | | 20 Oct 2021
    This is important work, at least partially addressed in other benchmark harnesses (like has DoNotOptimize and ClobberMemory By and large this whole area is criminally under-examined, IMO.

    What I'd really like is for someone to put together a suite of statistical tests that reject poor performance measurements. At a bare minimum performance should look like an IID random variable when you sample it. If not, you haven't reached steady state, or there are correlations between repeated runs, etc.

  • Benchmarking Code
    6 projects | | 19 Oct 2021
    Google Bench
  • CXXGraph Library Release v0.1.5
    5 projects | | 25 Aug 2021
    # Check out the library. $ git clone # Benchmark requires Google Test as a dependency. Add the source tree as a subdirectory. $ git clone benchmark/googletest # Go to the library root directory $ cd benchmark # Make a build directory to place the build output. $ cmake -E make_directory "build" # Generate build system files with cmake. $ cmake -E chdir "build" cmake -DCMAKE_BUILD_TYPE=Release ../ # or, starting with CMake 3.13, use a simpler form: # cmake -DCMAKE_BUILD_TYPE=Release -S . -B "build" # Build the library. $ cmake --build "build" --config Release # install library $ sudo cmake --build "build" --config Release --target install
  • Suggestions for C++ microbenchmarking libraries (ideally) with plotting features
    4 projects | | 10 Jun 2021
    GoogleBenchmark can already do it. Output to JSON and write a plotting tool in whatever. What I was missing is to output the difference between two instances of benchmark also in JSON. That was fixed by
    4 projects | | 10 Jun 2021
    I have tried the one by google and it's nice that it prints out a report with the cache sizes etc so it's easy to paste it in an email without having to have the conversation about "what system was this run on" but I think a successful micorbenchmark library should cut down on:
  • Given two integers N and K, you have to print all +ve numbers below N formed by digits 4,5,6 only that are divisible by K in increasing order.
    1 project | | 5 Jun 2021
    Benchmarking is really just timing how long code takes to run. There are some useful libraries like google/benchmark, and even the site Quick C++ Benchmark, which handle all the nitty gritty details and let you focus on the code you are trying to optimise.
  • TDD & c++ - Best practices?
    2 projects | | 14 Jan 2021
    Google test is excellent and as it's integrated with visual studios then it seems a good choice. You can add on google/benchmark for micro benchmarks and googlemock for well...mocking.

What are some alternatives?

When comparing libtap and benchmark you can also consider the following projects:

Celero - C++ Benchmark Authoring Library/Framework

hayai - C++ benchmarking framework

Nonius - A C++ micro-benchmarking framework

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)

Google Test - GoogleTest - Google Testing and Mocking Framework

CppUTest - CppUTest unit testing and mocking framework for C/C++

doctest - The fastest feature-rich C++11/14/17/20 single-header testing framework

easy_profiler - Lightweight profiler library for c++

CppUnit - C++ port of JUnit

gdb-frontend - β˜• GDBFrontend is an easy, flexible and extensionable gui debugger.

test - Write unit and fuzz tests for Elm code.