On my list of tools to experiment with: [Wayback/Archive] Delphi sorcery: Introducing Spring.Benchmark – a port of Google benchmark
This got released while I was recovering from cancer procedures, to I totally missed it.
Interesting stuff, as I knew there was the Google benchmark library*, but since I hardly do any C++ work, I never used it.
* [Wayback/Archive] GitHub – google/benchmark: A microbenchmark support library
The source code for the Delphi based Spring.Benchmark library is at [Wayback/Archive] GitHub – spring4d/benchmark: Delphi port of Google Benchmark, especially [Wayback/Archive] benchmark/Spring.Benchmark.pas at master · spring4d/benchmark · GitHub.
Videos to watch before using it:
- [Wayback/Archive] Sorting Algorithms: Speed Is Found In The Minds of People – Andrei Alexandrescu – CppCon 2019 – YouTube
- [Wayback/Archive] CppCon 2014: Chandler Carruth “Efficiency with Algorithms, Performance with Data Structures” – YouTube
- [Wayback/Archive] CppCon 2015: Chandler Carruth “Tuning C++: Benchmarks, and CPUs, and Compilers! Oh My!” – YouTube
- [Wayback/Archive] Plenary: Performance Matters – Emery Berger – CppCon 2020 – YouTube
Related links:
- [Wayback/Archive] QueryPerformanceCounter precision – Windows API – Delphi-PRAXiS [en] (page 1)
- [Wayback/Archive] QueryPerformanceCounter precision – Page 2 – Windows API – Delphi-PRAXiS [en]
- [Wayback/Archive] QueryPerformanceCounter precision – Page 3 – Windows API – Delphi-PRAXiS [en]
--
jeroen