catchorg / catchorg/Catch2

Benchmark manual samples and iterations count

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

Description

Currently, Catch2 Benchmark automatically compute the required iterations count for a benchmark to be accurate, and the sample count seems to be fixed to 100.

This is great. But in some cases, it would be very useful to be able to set this manually, especially the sample count. This is possible in Celero, and it would be great to have it too in Catch2.

Contributor guide

Open the contributing guide

Research direction

Start by locating Catch2's benchmark implementation and existing benchmark tests, then trace how sample and iteration counts are currently selected. Done means exposing a documented way to configure those counts, especially the sample count, with tests covering the new behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
testing
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.