Package org.apache.sling.performance.annotation

Examples of org.apache.sling.performance.annotation.PerformanceTest


    Object response = null;

    Method testMethodToInvoke = this.getMethod();

    PerformanceTest performanceAnnotation = testMethodToInvoke
        .getAnnotation(PerformanceTest.class);

    // retrieve the test configuration options
    int warmuptime = performanceAnnotation.warmuptime();
    int runtime = performanceAnnotation.runtime();
    int warmupinvocations = performanceAnnotation.warmupinvocations();
    int runinvocations = performanceAnnotation.runinvocations();

    DescriptiveStatistics statistics = new DescriptiveStatistics();

    if (warmupinvocations != 0) {
      // Run the number of invocation specified in the annotation
View Full Code Here

TOP

Related Classes of org.apache.sling.performance.annotation.PerformanceTest

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.