Class BenchmarkOptions

java.lang.Object
org.teavm.perf.BenchmarkOptions

public class BenchmarkOptions extends Object
Settings that override settings given by annotations, usually specified via command line. When neither annotations nor these options specify a setting, defaults are used. Defaults are the same as JMH ones, except for iteration count, iteration time and number of forks, which are much smaller. Unlike JVM, code produced by TeaVM needs little warmup: C code is compiled ahead of time, and browsers tier up hot JS and Wasm code within milliseconds. So short warmup is mostly needed to pick batch size and short iterations are sufficient to get stable results, while keeping running time reasonable.
  • Field Details

  • Constructor Details

    • BenchmarkOptions

      public BenchmarkOptions()
  • Method Details