org.openjdk.jmh.runner.options

Interface ChainedOptionsBuilder

  • All Known Implementing Classes:
    OptionsBuilder


    public interface ChainedOptionsBuilder
    • Method Detail

      • build

        Options build()
        Produce the final Options
        Returns:
        options object.
      • parent

        ChainedOptionsBuilder parent(Options other)
        Override the defaults from the given option. You may use this only once.
        Parameters:
        other - options to base on
        Returns:
        builder
      • include

        ChainedOptionsBuilder include(String regexp)
        Include benchmark in the run (Can be used multiple times)
        Parameters:
        regexp - to match benchmarks against
        Returns:
        builder
      • exclude

        ChainedOptionsBuilder exclude(String regexp)
        Exclude benchmarks from the run (Can be used multiple times)
        Parameters:
        regexp - to match benchmark against
        Returns:
        builder
      • output

        ChainedOptionsBuilder output(String filename)
        Output filename to write the run log to
        Parameters:
        filename - file name
        Returns:
        builder
      • result

        ChainedOptionsBuilder result(String filename)
        Output filename to write the result to
        Parameters:
        filename - file name
        Returns:
        builder
      • shouldDoGC

        ChainedOptionsBuilder shouldDoGC(boolean value)
        Should do GC between measurementIterations?
        Parameters:
        value - flag
        Returns:
        builder
      • shouldFailOnError

        ChainedOptionsBuilder shouldFailOnError(boolean value)
        Should fail on first benchmark error?
        Parameters:
        value - flag
        Returns:
        builder
      • threads

        ChainedOptionsBuilder threads(int count)
        Number of threads to run the benchmark in
        Parameters:
        count - number of threads
        Returns:
        builder
        See Also:
        Threads
      • syncIterations

        ChainedOptionsBuilder syncIterations(boolean value)
        Should synchronize measurementIterations?
        Parameters:
        value - flag
        Returns:
        builder
      • warmupIterations

        ChainedOptionsBuilder warmupIterations(int value)
        How many warmup iterations to do?
        Parameters:
        value - flag
        Returns:
        builder
        See Also:
        Warmup
      • warmupBatchSize

        ChainedOptionsBuilder warmupBatchSize(int value)
        How large warmup batchSize should be?
        Parameters:
        value - batch size
        Returns:
        builder
        See Also:
        Warmup
      • includeWarmup

        ChainedOptionsBuilder includeWarmup(String regexp)
        What other benchmarks to warmup along the way
        Parameters:
        regexp - to match benchmarks against
        Returns:
        builder
      • measurementIterations

        ChainedOptionsBuilder measurementIterations(int count)
        How many measurement measurementIterations to do
        Parameters:
        count - number of iterations
        Returns:
        builder
        See Also:
        Measurement
      • measurementBatchSize

        ChainedOptionsBuilder measurementBatchSize(int value)
        How large measurement batchSize should be?
        Parameters:
        value - batch size
        Returns:
        builder
        See Also:
        Measurement
      • forks

        ChainedOptionsBuilder forks(int value)
        Number of forks to use in the run
        Parameters:
        value - number of forks
        Returns:
        builder
        See Also:
        Fork
      • warmupForks

        ChainedOptionsBuilder warmupForks(int value)
        Number of ignored forks
        Parameters:
        value - number of ignored forks
        Returns:
        builder
        See Also:
        Fork
      • jvmArgsAppend

        ChainedOptionsBuilder jvmArgsAppend(String... value)
        Append forked JVM arguments: These options go after other options.
        Parameters:
        value - arguments to add to the run
        Returns:
        builder
        See Also:
        Fork
      • jvmArgsPrepend

        ChainedOptionsBuilder jvmArgsPrepend(String... value)
        Prepend forked JVM arguments: These options go before any other options.
        Parameters:
        value - arguments to add to the run
        Returns:
        builder
        See Also:
        Fork
      • detectJvmArgs

        ChainedOptionsBuilder detectJvmArgs()
        Autodetect forked JVM arguments from the parent VM. Overrides the jvmArgs(...) value.
        Returns:
        builder
      • param

        ChainedOptionsBuilder param(String name,                          String... values)
        Set benchmark parameter values. The parameter values would be taken in the order given by user.
        Parameters:
        name - parameter
        values - sequence of values to set
        Returns:
        builder
        See Also:
        Param

Copyright © 2012-2015 Oracle. All Rights Reserved.



NOTHING
NOTHING
Add the Maven Dependecy to your project: maven dependecy for com.amazonaws : aws-java-sdk : 1.3.14