catchorg / catchorg/Catch2

Benchmark time divisions

Open
#1,690 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
21.5k
Forks
3.5k
Avg merge
3d 16h
Merged PRs (30d)
2

Description

**Description**
Working on an audio application, one of the things i'd like to measure is the difference in performance depending on the size of the audio buffer. That is, i want to benchmark the processing time per audio sample when i call my `process` function with 1, 256, or 1024 samples at a time.
As the function i benchmark has to be the main `process` function, i have no way to get the per sample time, except for manually dividing the reported result, which isn't very handy when experimenting with a lot of small changes.

So, could we get a `divisor` or similarly named option, maybe in the `Chronometer` class, so it can be used with the `BENCHMARK_ADVANCED` macro.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.