From bc8594db6131d83d7045043a10c3a09d8e560088 Mon Sep 17 00:00:00 2001 From: nulli0n Date: Mon, 10 Jun 2024 19:38:32 +0500 Subject: [PATCH] tag fixes --- .../nightcore/util/BenchmarkLoop.java | 20 +++++++++---------- .../nightcore/util/text/TextGroup.java | 4 ++-- 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/src/main/java/su/nightexpress/nightcore/util/BenchmarkLoop.java b/src/main/java/su/nightexpress/nightcore/util/BenchmarkLoop.java index c319160..b4d9d43 100644 --- a/src/main/java/su/nightexpress/nightcore/util/BenchmarkLoop.java +++ b/src/main/java/su/nightexpress/nightcore/util/BenchmarkLoop.java @@ -2,12 +2,11 @@ package su.nightexpress.nightcore.util; //@BenchmarkMode({Mode.AverageTime}) //@OutputTimeUnit(TimeUnit.MILLISECONDS) +//@State(Scope.Benchmark) //@Fork(value = 1, jvmArgs = {"-Xms2G", "-Xmx2G"}) public class BenchmarkLoop { - /*private static final int N = 10_000_000; - - public static void main(String[] args) throws RunnerException { + /*public static void main(String[] args) throws RunnerException { Options opt = new OptionsBuilder() .include(BenchmarkLoop.class.getSimpleName()) @@ -17,18 +16,19 @@ public class BenchmarkLoop { new Runner(opt).run(); } - @Benchmark - public static void first(Blackhole blackhole) { - for (int i = 0; i < N; i++) { + @Setup + public void setup() { - } } @Benchmark - public static void second(Blackhole blackhole) { - for (int i = 0; i < N; i++) { + public void first(Blackhole blackhole) { + + } + + @Benchmark + public void second(Blackhole blackhole) { - } }*/ } diff --git a/src/main/java/su/nightexpress/nightcore/util/text/TextGroup.java b/src/main/java/su/nightexpress/nightcore/util/text/TextGroup.java index 45ac190..1e2c07b 100644 --- a/src/main/java/su/nightexpress/nightcore/util/text/TextGroup.java +++ b/src/main/java/su/nightexpress/nightcore/util/text/TextGroup.java @@ -76,9 +76,9 @@ public class TextGroup implements ComponentBuildable { this.childrens.forEach(child -> { BaseComponent childComponent = child.toComponent(); - if (!TextRoot.isEmpty(childComponent)) { + //if (!TextRoot.isEmpty(childComponent)) { builder.append(childComponent); - } + //} }); return builder.build();