tag fixes

This commit is contained in:
nulli0n committed 2024-06-10 19:38:32 +05:00
1 parent c76a241d09
commit bc8594db61
2 files changed
+12 -12

No files matched your search

@@ -2,12 +2,11 @@ package su.nightexpress.nightcore.util;
//@BenchmarkMode({Mode.AverageTime}) //@BenchmarkMode({Mode.AverageTime})
//@OutputTimeUnit(TimeUnit.MILLISECONDS) //@OutputTimeUnit(TimeUnit.MILLISECONDS)
//@State(Scope.Benchmark)
//@Fork(value = 1, jvmArgs = {"-Xms2G", "-Xmx2G"}) //@Fork(value = 1, jvmArgs = {"-Xms2G", "-Xmx2G"})
public class BenchmarkLoop { 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() Options opt = new OptionsBuilder()
.include(BenchmarkLoop.class.getSimpleName()) .include(BenchmarkLoop.class.getSimpleName())
@@ -17,18 +16,19 @@ public class BenchmarkLoop {
new Runner(opt).run(); new Runner(opt).run();
} }
@Benchmark @Setup
public static void first(Blackhole blackhole) { public void setup() {
for (int i = 0; i < N; i++) {
}
} }
@Benchmark @Benchmark
public static void second(Blackhole blackhole) { public void first(Blackhole blackhole) {
for (int i = 0; i < N; i++) {
}
@Benchmark
public void second(Blackhole blackhole) {
}
}*/ }*/
} }
@@ -76,9 +76,9 @@ public class TextGroup implements ComponentBuildable {
this.childrens.forEach(child -> { this.childrens.forEach(child -> {
BaseComponent childComponent = child.toComponent(); BaseComponent childComponent = child.toComponent();
if (!TextRoot.isEmpty(childComponent)) { //if (!TextRoot.isEmpty(childComponent)) {
builder.append(childComponent); builder.append(childComponent);
} //}
}); });
return builder.build(); return builder.build();