Clarify the difference between BENCHMARK_TEMPLATE_F and BENCHMARK_TEMPLATE_DEFINE_F + BENCHMARK_REGISTER_F#1815
Conversation
Add comments highlighting the difference between `BENCHMARK_TEMPLATE_F` and `BENCHMARK_TEMPLATE_DEFINE_F`, mirroring those of `BENCHMARK_F ` and `BENCHMARK_DEFINE_F`.
| } | ||
| } | ||
|
|
||
| /* DoubleTest is NOT registered */ |
There was a problem hiding this comment.
I think //-style comments are used elsewhere, so let's be consistent.
I think it would be good to also mention IntTest,
is BENCHMARK_TEMPLATE_F enough, and only the BENCHMARK_TEMPLATE_DEFINE_F
needs to be followed up with BENCHMARK_REGISTER_F or not?
There was a problem hiding this comment.
👍, I'm happy to do that (and will write some tests to confirm!).
In the user guide, Fixtures is similar and uses /* ... */ comments - I think it's within scope to update that one.
Shall I update the one other instance in Preventing Optimization as well?
There was a problem hiding this comment.
👍, I'm happy to do that (and will write some tests to confirm!).
In the user guide, Fixtures is similar and uses
/* ... */comments - I think it's within scope to update that one.Shall I update the one other instance in Preventing Optimization as well?
Eh, i guess why not?
BENCHMARK_TEMPLATE_F and BENCHMARK_TEMPLATE_DEFINE_F + BENCHMARK_REGISTER_F
|
Seems nice to me. I did not verify that the behavior of |
|
great. thank you! |
Add comments highlighting the difference between
BENCHMARK_TEMPLATE_FandBENCHMARK_TEMPLATE_DEFINE_F, mirroring those ofBENCHMARK_FandBENCHMARK_DEFINE_F.