diff --git a/benchmark/src/main/java/com/github/dtprj/dongting/bench/common/BenchBase.java b/benchmark/src/main/java/com/github/dtprj/dongting/bench/common/BenchBase.java index 8772dc6e5..6cc56c317 100644 --- a/benchmark/src/main/java/com/github/dtprj/dongting/bench/common/BenchBase.java +++ b/benchmark/src/main/java/com/github/dtprj/dongting/bench/common/BenchBase.java @@ -56,7 +56,7 @@ public void init() throws Exception { protected void afterWarmup() { } - public void shutdown() throws Exception { + public void shutdown() { } public void start() throws Exception { @@ -92,8 +92,8 @@ public void start() throws Exception { System.out.println("fail sc:" + fc + ", ops=" + new DecimalFormat(",###").format(ops)); if (logRt) { - System.out.printf("Max time: %,d ns%n", maxNanos.longValue()); - System.out.printf("Avg time: %,d ns%n", totalNanos.sum() / (sc + fc)); + System.out.printf("Max time: %,d us%n", maxNanos.longValue() / 1000); + System.out.printf("Avg time: %,d us%n", totalNanos.sum() / (sc + fc) / 1000); } } catch (Exception e) { log.error("", e);