Package org.teavm.perf
Class IterationSettings
java.lang.Object
org.teavm.perf.IterationSettings
Settings of warmup or measurement phase. Negative values mean "not specified".
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringformatTime(long nanos) intintlongorElse(IterationSettings other) Takes values from this object, falling back to values ofotherobject when value is not specified.static longParses time in JMH format, e.g.
-
Field Details
-
BLANK
-
-
Constructor Details
-
IterationSettings
public IterationSettings(int iterations, long timeNanos, int batchSize)
-
-
Method Details
-
getIterations
public int getIterations() -
getTimeNanos
public long getTimeNanos() -
getBatchSize
public int getBatchSize() -
orElse
Takes values from this object, falling back to values ofotherobject when value is not specified. -
formatTime
-
parseTime
Parses time in JMH format, e.g.1s,500ms,10 us.
-