We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6f69a53 commit 64a257bCopy full SHA for 64a257b
runtime/commonMain/src/kotlinx/benchmark/CommonBenchmarkAnnotations.kt
@@ -47,8 +47,8 @@ fun BenchmarkTimeUnit.toText() = when (this) {
47
48
fun String.toMode() =
49
when (this) {
50
- "thrpt" -> Mode.Throughput
51
- "avgt" -> Mode.AverageTime
+ "thrpt", "Throughput" -> Mode.Throughput
+ "avgt", "AverageTime" -> Mode.AverageTime
52
else -> throw UnsupportedOperationException("$this is not supported")
53
}
54
0 commit comments