hayai
hayai copied to clipboard
Fixture setup with arguments
I was trying to create a fixture so that the size of the input of the test would be different among benchmarks, but with the same fixture.
Hawai doesn't do well with template fixtures, I expected as much. However I think it would be interesting to give SetUp, TearDown etc a void* parameter so that we can configure those steps per benchmark.
This is a good point; I've been pondering templated benchmarks myself. I'll add this to the work of getting a version 1.0.0 out there :)
Templated benchmarks could be useful (especially with c++11 variadic templates). But I think it shouldn't depend too much on c++11, or at least have the non-c++11 features still backward-compatible. Using lambdas as SetUp/TearDown could also be interesting
Yea, dependency on C++11 is not something I'm comfortable with. However, enabling more powerful features when C++11+ is used makes sense.
Are there any news about this topic?
Was this implemented yet?
Not yet, no. We might want to drop C++<11 support and do this :)