You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello! Thank you for the support. Celero is being very helpful.
It would be nice if getExperimentValues() was a templated method. Thus, the problemSpace array could be parameterized in compile time by using templates.
Another option would be making the problemSpace some kind of map data structure, which maps a integer to a structure representing the input of the benchmark test.
In my opinion, this would give more flexibility in the setUp methods.
The text was updated successfully, but these errors were encountered:
This is a good idea. I don't like that it only takes int64_t's either. I think it could easily be a templated parameter on a test fixture. Then you would have a std::vector to work with for your problemSpace. Would that address your needs?
So I looked at this and it wouldn't be trivial to shoe-horn in. I agree it would be a nice feature. I would suggest you could push indexes into the array, 0-N, and then use that in your own map or as indexes into a vector of objects or whatever you may need. It's a bit of a hack, but not too much of one for now. Hope that helps.
Hello! Thank you for the support. Celero is being very helpful.
It would be nice if getExperimentValues() was a templated method. Thus, the problemSpace array could be parameterized in compile time by using templates.
Another option would be making the problemSpace some kind of map data structure, which maps a integer to a structure representing the input of the benchmark test.
In my opinion, this would give more flexibility in the setUp methods.
The text was updated successfully, but these errors were encountered: