Class BenchmarkEntryPoint

java.lang.Object
org.teavm.perf.runtime.BenchmarkEntryPoint

public final class BenchmarkEntryPoint extends Object
Template of a benchmark program. Native methods are replaced by BenchmarkEntryPointTransformer with code that calls methods of particular benchmark. Host passes settings as a single argument (see run(String)) and reads results from stdout (lines starting with OUTPUT_PREFIX).
  • Field Details

  • Method Details

    • run

      public static void run(String argument)
      Runs benchmark.
      Parameters:
      argument - list of key=value pairs, separated by ;. Values of parameters are encoded, so that they can't contain any characters except for ASCII letters and digits. Characters are encoded as %XXXX, where XXXX is a hex code of a UTF-16 code unit.
    • run

      public static void run(String argument, BenchmarkProfiler profiler)
      Runs benchmark. When argument contains prof key and profiler is given, measurement iterations are recorded by profiler with title, specified by value of prof key.