From 014115f2ec21719c8a431ae5af3a66ce85da1a77 Mon Sep 17 00:00:00 2001 From: Oleg Smirnov Date: Fri, 10 Jan 2025 19:42:29 +0400 Subject: [PATCH] Use enum instead of entry imports in benchmarks --- .../optimumcode/json/schema/benchmark/CommonBenchmarks.kt | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/benchmark/src/commonMain/kotlin/io/github/optimumcode/json/schema/benchmark/CommonBenchmarks.kt b/benchmark/src/commonMain/kotlin/io/github/optimumcode/json/schema/benchmark/CommonBenchmarks.kt index 791f6032..f077ae75 100644 --- a/benchmark/src/commonMain/kotlin/io/github/optimumcode/json/schema/benchmark/CommonBenchmarks.kt +++ b/benchmark/src/commonMain/kotlin/io/github/optimumcode/json/schema/benchmark/CommonBenchmarks.kt @@ -2,8 +2,7 @@ package io.github.optimumcode.json.schema.benchmark import kotlinx.benchmark.BenchmarkMode import kotlinx.benchmark.BenchmarkTimeUnit -import kotlinx.benchmark.Mode.AverageTime -import kotlinx.benchmark.Mode.Throughput +import kotlinx.benchmark.Mode import kotlinx.benchmark.OutputTimeUnit import kotlinx.benchmark.Param import kotlinx.benchmark.Scope @@ -11,7 +10,7 @@ import kotlinx.benchmark.State @State(Scope.Benchmark) @OutputTimeUnit(BenchmarkTimeUnit.SECONDS) -@BenchmarkMode(Throughput) +@BenchmarkMode(Mode.Throughput) class CommonThroughputBench : AbstractCommonBenchmark() { @Param("object") override var objectPath: String = "" @@ -22,7 +21,7 @@ class CommonThroughputBench : AbstractCommonBenchmark() { @State(Scope.Benchmark) @OutputTimeUnit(BenchmarkTimeUnit.MICROSECONDS) -@BenchmarkMode(AverageTime) +@BenchmarkMode(Mode.AverageTime) class CommonAvgTimeBench : AbstractCommonBenchmark() { @Param("object") override var objectPath: String = ""