Skip to content

Commit

Permalink
Use enum instead of entry imports in benchmarks
Browse files Browse the repository at this point in the history
  • Loading branch information
OptimumCode committed Jan 10, 2025
1 parent a5711c5 commit 014115f
Showing 1 changed file with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,15 @@ 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
import kotlinx.benchmark.State

@State(Scope.Benchmark)
@OutputTimeUnit(BenchmarkTimeUnit.SECONDS)
@BenchmarkMode(Throughput)
@BenchmarkMode(Mode.Throughput)
class CommonThroughputBench : AbstractCommonBenchmark() {
@Param("object")
override var objectPath: String = ""
Expand All @@ -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 = ""
Expand Down

0 comments on commit 014115f

Please sign in to comment.