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?
In caliper 1.0 you’ll be able to throw a
SkipThisScenarioExceptionany time you determine that your combination of params is not worth benchmarking. It will cause Caliper to just skip over that combination, like it sounds.