Skip to content

Commit 64a257b

Browse files
author
Abduqodiri Qurbonzoda
committed
Preserve "Throughput" and "AverageTime" benchmark mode for compatibility
1 parent 6f69a53 commit 64a257b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

runtime/commonMain/src/kotlinx/benchmark/CommonBenchmarkAnnotations.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,8 @@ fun BenchmarkTimeUnit.toText() = when (this) {
4747

4848
fun String.toMode() =
4949
when (this) {
50-
"thrpt" -> Mode.Throughput
51-
"avgt" -> Mode.AverageTime
50+
"thrpt", "Throughput" -> Mode.Throughput
51+
"avgt", "AverageTime" -> Mode.AverageTime
5252
else -> throw UnsupportedOperationException("$this is not supported")
5353
}
5454

0 commit comments

Comments
 (0)