Package com.soywiz.klock.benchmark

Types

Link copied to clipboard
data class BenchmarkResult(    val timePerCallNanoseconds: Long,     val maxDeviationNanoseconds: Long,     val partialResults: List<BenchmarkResult.PartialResult>,     val dummyResult: Double)

Functions

Link copied to clipboard
@JvmName(name = "BenchmarkGeneric")
inline fun <T> benchmark(noinline block: () -> T): BenchmarkResult
fun benchmark(block: () -> Double): BenchmarkResult
Link copied to clipboard
inline fun <T> printBenchmark(    name: String,     full: Boolean = false,     noinline block: () -> T)
Link copied to clipboard
fun printBenchmarks(vararg benchmarks: Pair<String, () -> Double>, full: Boolean = false)