Companion

object Companion

Properties

Link copied to clipboard
const val DEFAULT_MAX_ERROR_RATE: Double = 0.01
Link copied to clipboard
const val DEFAULT_MIN_GAIN: Double = 0.05

Functions

Link copied to clipboard

This JVM's CPU time so far, in seconds.

Link copied to clipboard
fun stopsEarly(seconds: Int, ok: Long, failed: Long, best: Double, failAfterSeconds: Int?, maxErrorRate: Double = DEFAULT_MAX_ERROR_RATE): Boolean

Whether a step that has measured seconds, ok operations done and failed failed so far ends now: with failAfterSeconds set, once it has measured that long, its errors pass maxErrorRate and its throughput is below best, an earlier step's. A step that may yet be the saturation point never ends early.