From ff2c06ebaba2acf000bfa20b1c24f925abfeaaa3 Mon Sep 17 00:00:00 2001 From: Thomas Segismont Date: Mon, 6 Jan 2025 11:24:09 +0100 Subject: [PATCH] Move HostAndPortBenchmark to the benchmarks package Signed-off-by: Thomas Segismont --- .../vertx/benchmarks}/HostAndPortBenchmark.java | 17 ++++------------- 1 file changed, 4 insertions(+), 13 deletions(-) rename {src/test/benchmarks/io/vertx/core/net/impl => vertx-core/src/test/java/io/vertx/benchmarks}/HostAndPortBenchmark.java (72%) diff --git a/src/test/benchmarks/io/vertx/core/net/impl/HostAndPortBenchmark.java b/vertx-core/src/test/java/io/vertx/benchmarks/HostAndPortBenchmark.java similarity index 72% rename from src/test/benchmarks/io/vertx/core/net/impl/HostAndPortBenchmark.java rename to vertx-core/src/test/java/io/vertx/benchmarks/HostAndPortBenchmark.java index 6b0107b23c7..05a97896fa2 100644 --- a/src/test/benchmarks/io/vertx/core/net/impl/HostAndPortBenchmark.java +++ b/vertx-core/src/test/java/io/vertx/benchmarks/HostAndPortBenchmark.java @@ -9,21 +9,12 @@ * SPDX-License-Identifier: EPL-2.0 OR Apache-2.0 */ -package io.vertx.core.net.impl; +package io.vertx.benchmarks; -import java.util.concurrent.TimeUnit; +import io.vertx.core.net.impl.HostAndPortImpl; +import org.openjdk.jmh.annotations.*; -import org.openjdk.jmh.annotations.Benchmark; -import org.openjdk.jmh.annotations.BenchmarkMode; -import org.openjdk.jmh.annotations.Fork; -import org.openjdk.jmh.annotations.Measurement; -import org.openjdk.jmh.annotations.Mode; -import org.openjdk.jmh.annotations.OutputTimeUnit; -import org.openjdk.jmh.annotations.Param; -import org.openjdk.jmh.annotations.Scope; -import org.openjdk.jmh.annotations.Setup; -import org.openjdk.jmh.annotations.State; -import org.openjdk.jmh.annotations.Warmup; +import java.util.concurrent.TimeUnit; @State(Scope.Thread) @BenchmarkMode(Mode.AverageTime)