diff options
| author | Martin Hořeňovský | 2026-08-22 19:00:32 +0200 |
|---|---|---|
| committer | Martin Hořeňovský | 2026-08-22 23:01:51 +0200 |
| commit | 69da66ee7370d7c249ba6f2a322a78dcdd623761 (patch) | |
| tree | a688adc0ac208a44dde27da6b2800b439a0f3b88 /tools/scripts/updateDocumentToC.py | |
| parent | 45f9ea1e798c2e128dcba53602ccbddfe5676f6f (diff) | |
| download | catch3-69da66ee7370d7c249ba6f2a322a78dcdd623761.tar.gz | |
Don't instantiate the default implementation of benchmarks in every TU
The underlying benchmarking machinery is templated, so that it can use
different clock implementations (either for testing, or to support user
with platform-specific clocks). However, 99.99% of all users interact
with it using the `BENCHMARK` macro, which means that they use it with
`std::chrono::steady_clock`.
By adding outlined implementation of benchmarking helpers specialized
onto `std::chrono::steady_clock`, we save some amount of time per every
TU that uses benchmarks.
Diffstat (limited to 'tools/scripts/updateDocumentToC.py')
0 files changed, 0 insertions, 0 deletions