Skip to content

Commit ce4609d

Browse files
committed
Correct usage of typealias in common code for benchmarks
1 parent cd473ed commit ce4609d

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

benchmark/src/commonMain/kotlin/io/github/optimumcode/json/schema/benchmark/CommonBenchmarks.kt

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,15 @@ package io.github.optimumcode.json.schema.benchmark
22

33
import kotlinx.benchmark.BenchmarkMode
44
import kotlinx.benchmark.BenchmarkTimeUnit
5-
import kotlinx.benchmark.Mode.AverageTime
6-
import kotlinx.benchmark.Mode.Throughput
5+
import kotlinx.benchmark.Mode
76
import kotlinx.benchmark.OutputTimeUnit
87
import kotlinx.benchmark.Param
98
import kotlinx.benchmark.Scope
109
import kotlinx.benchmark.State
1110

1211
@State(Scope.Benchmark)
1312
@OutputTimeUnit(BenchmarkTimeUnit.SECONDS)
14-
@BenchmarkMode(Throughput)
13+
@BenchmarkMode(Mode.Throughput)
1514
class CommonThroughputBench : AbstractCommonBenchmark() {
1615
@Param("object")
1716
override var objectPath: String = ""
@@ -22,7 +21,7 @@ class CommonThroughputBench : AbstractCommonBenchmark() {
2221

2322
@State(Scope.Benchmark)
2423
@OutputTimeUnit(BenchmarkTimeUnit.MICROSECONDS)
25-
@BenchmarkMode(AverageTime)
24+
@BenchmarkMode(Mode.AverageTime)
2625
class CommonAvgTimeBench : AbstractCommonBenchmark() {
2726
@Param("object")
2827
override var objectPath: String = ""

0 commit comments

Comments
 (0)