krangl / krangl.util / MicroBenchmark

MicroBenchmark

class MicroBenchmark<T>

Author
Holger Brandl

Constructors

<init>

MicroBenchmark(reps: Int = 25, warmupReps: Int = 10)

Properties

reps

var reps: Int

results

val results: MutableList<BenchmarkResult<T>>

warmupReps

var warmupReps: Int

Functions

elapseNano

fun elapseNano(desc: T? = null, callback: () -> Unit): BenchmarkResult<T>

printSummary

fun printSummary(): Unit