benchmark icon indicating copy to clipboard operation
benchmark copied to clipboard

[FR] Improve docs for naming of benchmark arguments

Open pdroalves opened this issue 2 years ago • 1 comments

Is your feature request related to a problem? Please describe. I have benchmarks that need to be executed for different input parameter sets composed by many integer attributes. Today the output line for each benchmark is just the concatenation of the fixture name, the benchmark name, and all the numerical attributes. For instance:

MyFixture/MyImportantBenchmark/744/2048

This is terrible to read since the user may not know what each number relates to.

Describe the solution you'd like I would like to have the possibility to use a name generator, just as googletest has, to customize this. So that line could become

MyFixture/MyImportantBenchmark/foo_744/bar_2048

pdroalves avatar Sep 07 '23 14:09 pdroalves

That already works, see ArgName() and ArgNames() (https://github.com/google/benchmark/pull/305) Please consider contributing a documentation for this, since it is clearly missing.

LebedevRI avatar Sep 07 '23 14:09 LebedevRI