I'm testing 6 different implementations of a two methods, which would need time*
12 method. Using an interface and @Param
with a Supplier
I need only 2 methods, but there can be some associated overhead, so I wrote timeDirect
measuring one of the methods directly to see the overhead.
Obviously timeDirect
doesn't depend on the parameter and should be invoked just once. Is there a way how to tell it caliper?