|4 months ago||about 7 hours ago|
|GNU Lesser General Public License v3.0 only||Apache License 2.0|
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.
We haven't tracked posts mentioning libtap yet.
Tracking mentions began in Dec 2020.
How to identify inefficient method calls?
1 project | reddit.com/r/cpp | 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 | reddit.com/r/cpp_questions | 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 | dev.to | 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 | news.ycombinator.com | 20 Oct 2021
This is important work, at least partially addressed in other benchmark harnesses (like github.com/google/benchmark has DoNotOptimize and ClobberMemory https://github.com/google/benchmark/blob/7fad964a94da9364af1...). 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.
6 projects | dev.to | 19 Oct 2021
CXXGraph Library Release v0.1.5
5 projects | dev.to | 25 Aug 2021
# Check out the library. $ git clone https://github.com/google/benchmark.git # Benchmark requires Google Test as a dependency. Add the source tree as a subdirectory. $ git clone https://github.com/google/googletest.git 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 | reddit.com/r/cpp | 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 https://github.com/google/benchmark/pull/10424 projects | reddit.com/r/cpp | 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 | reddit.com/r/Cplusplus | 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 | reddit.com/r/cpp | 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?
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.