You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1.2 KiB
1.2 KiB
performance_measuring
Scripts and tools to measure performance.
This repo meant to be a sandbox.
The tested dummy algorithm
The measured algorithms are 3 variations on counting the smallest element in a array.
- C style, count-as-go: O(n)
- C++
std::min_element
thenstd::count
: O(n) + O(n) - C++
std::sort
thenstd::upper_bound
: O(n log n) + O(n)
Environment
The array contains 10k randomly generated integers [0, 1000].
The machine which generated the results is an Intel NUC 7CJYH.
Catch2's benchmarking tools
Using catch2, an example output of performance_measuring_test
:
Flamegraph
An interactive flamegraph can be generated to visualize perf's measurements, where the callgraph can be traversed.