Package: groovy.groovyx.gbench

[Groovy] Class BenchmarkBuilder

    • Field Detail

      • public static int AUTO

    • Method Detail

      • def run(Map options = [:], Closure clos)

        Gets benchmarks.

        Parameters:
        options -
        • warmUpTime: the length of time (in seconds) to warm up Groovy and JVM. the default value is AUTO.
        • maxWarmUpTime: the maximum length of time (in seconds) that is used when warmUpTime is AUTO.
        • measureCpuTime: measure CPU time. the default value depends on JVM.
        • quiet: suppress output. the default value is false.
        • verbose: enable verbose output. the default value is false.
        clos - a closure to add code blocks for benchmarking.
        Returns:
        a list of benchmarks

      • def with(String label, Closure clos)

        Adds a code block as a benchmark target.

        deprecated:
        Use the following alternate syntax instead: label { code }
        Parameters:
        label - the label of the code block.
        clos - a code block.