From 3bc4743ac368baf7f35313e159c568eb4f16d341 Mon Sep 17 00:00:00 2001 From: mochouZero555 Date: Thu, 25 Jul 2024 09:18:35 +0800 Subject: [PATCH] =?UTF-8?q?fix=20=E4=BC=98=E5=8C=96=E6=8E=92=E5=BA=8Fbench?= =?UTF-8?q?mark?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../cn/hutool/core/comparator/IndexedComparatorTest.java | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/hutool-core/src/test/java/cn/hutool/core/comparator/IndexedComparatorTest.java b/hutool-core/src/test/java/cn/hutool/core/comparator/IndexedComparatorTest.java index e9fef92ad..f6bede779 100644 --- a/hutool-core/src/test/java/cn/hutool/core/comparator/IndexedComparatorTest.java +++ b/hutool-core/src/test/java/cn/hutool/core/comparator/IndexedComparatorTest.java @@ -2,9 +2,11 @@ package cn.hutool.core.comparator; import cn.hutool.core.collection.CollectionUtil; import cn.hutool.core.date.StopWatch; +import cn.hutool.core.lang.Console; import lombok.AllArgsConstructor; import lombok.Data; import org.junit.Assert; +import org.junit.Ignore; import org.junit.Test; import java.util.Arrays; @@ -41,7 +43,8 @@ public class IndexedComparatorTest { } @Test - public void benchMarkSortTest() { + @Ignore + public void benchmarkSortTest() { final Object[] arr ={"a", "b", new User("9", null), "1",3,null,"2"}; final Collection set = new HashSet<>(Arrays.asList(arr)); @@ -52,7 +55,6 @@ public class IndexedComparatorTest { final List sortSet = CollectionUtil.sort(set, new IndexedComparator<>(arr)); } stopWatch.stop(); - System.out.println(stopWatch.prettyPrint()); stopWatch.start(); @@ -60,7 +62,7 @@ public class IndexedComparatorTest { final List sortSet = CollectionUtil.sort(set, new ArrayIndexedComparator<>(arr)); } stopWatch.stop(); - System.out.println(stopWatch.prettyPrint()); + Console.log(stopWatch.prettyPrint()); } @Data