public PerformanceRunner()

in base/src/main/java/org/apache/sling/performance/PerformanceRunner.java [75:104]


    public PerformanceRunner(Class<?> clazz) throws InitializationError {
        super(clazz);

        // set the report level for the tests that are run with the PerformanceRunner
        // by default set to class level for legacy tests compatibility
        if (clazz.getAnnotation(Parameters.class) != null){
            reportLevel = clazz.getAnnotation(Parameters.class).reportLevel();
            referenceMethod = clazz.getAnnotation(Parameters.class).referenceMethod();
            if ("".equals(referenceMethod)) {
                referenceMethod = null;
            } else {
                boolean found = false;
                for (Method method : clazz.getMethods()) {
                    if (method.getName().equals(referenceMethod) && method.getParameterTypes().length == 0) {
                        found = true;
                        break;
                    }
                }
                if (!found) {
                    referenceMethod = null;
                }
            }
        }

        try {
            computeTests();
        } catch (Exception e) {
            throw new InitializationError(e);
        }
    }