Package org.teavm.perf.runtime
Class BenchmarkEntryPoint
java.lang.Object
org.teavm.perf.runtime.BenchmarkEntryPoint
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
-
OUTPUT_PREFIX
- See Also:
-
MODE_TIMED
- See Also:
-
MODE_SINGLE_SHOT
- See Also:
-
-
Method Details
-
run
Runs benchmark.- Parameters:
argument- list ofkey=valuepairs, 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, whereXXXXis a hex code of a UTF-16 code unit.
-
run
Runs benchmark. When argument containsprofkey and profiler is given, measurement iterations are recorded by profiler with title, specified by value ofprofkey.
-