nonius
nonius copied to clipboard
A C++ micro-benchmarking framework
Adding CMake support would simplify consumption of nonius by other projects. If pull requests are welcome, I would be happy to provide an implementation.
What kind of timing does nonius measure? For example [Google Benchmark](https://github.com/google/benchmark) emphasises that it measures "CPU Time", does nonius do that too?
``` .../nonius-1.1.2/nonius/nonius.h++:1527:34: error: invalid use of incomplete type 'class std::future' return std::async(std::launch::async, [=]{ ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ std::mt19937 rng(seed); ~~~~~~~~~~~~~~~~~~~~~~~ auto resampled = resample(rng, n_resamples, first, last, f); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ return bootstrap(confidence_level, first, last,...
I have encountered a problem after updating nonious to the latest version of branch devel. Benchmarks that supposed to run very fast cause a freezing. For example ``` #include #include...
Hi @rmartinho! Here are a couple of new features (sorry for mixing them in the same PR but German classes are frying my brain and make even lazier than I...
`commentParser2` regex matches line [`*this = impl_->clone();`](https://github.com/libnonius/nonius/blob/devel/include/nonius/param.h%2B%2B#L113) which breaks the built header by outputting ``` void writable_() { if (impl_.use_count() > 1) { } } ``` Invalid output noticed by...
I came across this error during Jenkins JUnit integration of my benchmarks: org.xml.sax.SAXParseException; systemId: file:/data/jenkins/jobs/CoreEngine-PT-Tests/builds/23/performance-reports/JUnit/perf_result.xml; lineNumber: 7; columnNumber: 4; The element type "property" must be terminated by the matching end-tag...
Compiling a tiny test project consisting only of example1.c++, I get the following error: In file included from /home/claravu/nonius/include/nonius/configuration.h++:17:0, from /home/claravu/nonius/include/nonius/benchmark.h++:18, from /home/claravu/nonius/include/nonius/nonius.h++:18, from /home/claravu/nonius/include/nonius/nonius_single.h++:14, from /home/claravu/test_nonius/example1.c++:36: /home/claravu/nonius/include/nonius/param.h++: In member...
Is there a way to select the benchmarks to run with a command line parameter? Something like ``` ./benchmark -s 10 "parse.*" ``` to run all benchmarks with titles beginning...