public Map < BenchmarkMethod , Integer > getNumberOfMethodsAndRuns ( ) throws PerfidixMethodCheckException { final Map < BenchmarkMethod , Integer > returnVal = new HashMap < BenchmarkMethod , Integer > ( ) ; // instantiate objects, just for getting runs final List < BenchmarkMethod > meths = getBenchmarkMethods ( ) ; for ( final BenchmarkMethod meth : meths ) { // TODO respect data provider int numberOfRuns = BenchmarkMethod . getNumberOfAnnotatedRuns ( meth . getMethodToBench ( ) ) ; if ( numberOfRuns == Bench . NONE_RUN ) { numberOfRuns = conf . getRuns ( ) ; } returnVal . put ( meth , numberOfRuns ) ; } return returnVal ; }
Getting the number of all methods and all runs