Skip to content

Commit

Permalink
bench: change rt from ns to us
Browse files Browse the repository at this point in the history
  • Loading branch information
areyouok committed Jun 10, 2024
1 parent 3828774 commit 69e9a84
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit 69e9a84

Please sign in to comment.