Skip to content

Commit 560c22c

Browse files
authored
cleanup benchmark printouts (#1394)
1 parent b261e49 commit 560c22c

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

‎common-tools/clas-utils/src/main/java/org/jlab/utils/benchmark/Benchmark.java‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ public String toString(){
7979
String margins = new String(asterix);
8080
s.append(margins);
8181
s.append("\n");
82-
s.append("* BENCHMARK RESULTS \n");
82+
s.append("* Benchmark Results \n");
8383
s.append(margins);
8484
s.append("\n");
8585
for (BenchmarkTimer b : timers) {

‎common-tools/clas-utils/src/main/java/org/jlab/utils/benchmark/BenchmarkTimer.java‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ public double getSeconds(){
5858
public String toString() {
5959
double timePerCall = 0.0;
6060
if (numberOfCalls != 0) timePerCall = getMiliseconds() / numberOfCalls;
61-
return String.format("TIMER (%-12s) : N Calls %12d, Total Time = %12.2f sec, Unit Time = %12.3f msec",
61+
return String.format("%-15s : #Calls %12d, Total = %12.2f sec, Unit = %12.3f msec",
6262
getName(), numberOfCalls, getSeconds(), timePerCall);
6363
}
6464
}

‎common-tools/clas-utils/src/main/java/org/jlab/utils/benchmark/BenchmarkTimerTotal.java‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ public BenchmarkTimerTotal(String name) {
1818
public String toString() {
1919
double timePerCall = 0.0;
2020
if (numberOfCalls != 0) timePerCall = getMiliseconds() / numberOfCalls * benchmarks.size();
21-
return String.format("TIMER (%-12s) : N Calls %12d, Total Time = %12.2f sec, Unit Time = %12.3f msec",
21+
return String.format("%-15s : #Calls %12d, Total = %12.2f sec, Unit = %12.3f msec",
2222
getName(), numberOfCalls, getSeconds(), timePerCall);
2323
}
2424

0 commit comments

Comments
 (0)