Open Mart-Bogdan opened 9 years ago
Back then, I needed only Func
Of the top of my head:
Our goal at this point would be to provide a library for micro-benchmarking automation with a set of minimum requirements and improve it towards precision gradually by learning best practices from industrial strength tools like JMH.
@Mart-Bogdan to answer your question: I say to start improving the API of the library incrementally, after careful thinking, and try to measure if test code validate (or not) our corresponding hypotheses for each decision we make. So, for now, yes! Write down a snippet of how you would like to use this part, the declaration of the lambda. This will help us through with the data type decisions.
BTW, take a look at this interesting reddit discussion about a similar project for Java 8 Lambdas. It contains useful comments.
http://www.reddit.com/r/java/comments/299vlz/nanobench_tiny_benchmarking_framework_for_java_8/
I am renaming this issue to "Discussion about API" as your question not only is valid but it may generate comments for the API in general.
ping @Mart-Bogdan.
I'd like to add Action benchmarks in addition to Function< T > benchmarks.
I guess that should be alternative class for that, or perhaps, just overloaded method?
In most cases void method is enought for benchmarking. Additional values can be feed to "Copiler.ConsumeValue"
I'd like to implement this, but I'd prefer we to discuss this first.
P.S. I'm studying 1st grade students and would like them to use this to benchmarks sortig algorithms, data structures, etc.