Skip to content

Commit

Permalink
number formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
wolfram-zz committed Jan 16, 2014
1 parent dc7dd92 commit de8ce71
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -203,12 +203,12 @@ public final String toString() {
.append(" sec\n");

builder.append("Avg thread throughput: ")
.append(String.format("%e", workerThroughput))
.append(String.format("%.3e", workerThroughput))
.append(" op/sec")
.append('\n');

builder.append("Avg throughput: ")
.append(String.format("%e",throughput))
.append(String.format("%.3e",throughput))
.append(" op/sec")
.append('\n');

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ public String toString() {
.append("\nTotal running time: ")
.append(String.format("%.3f", runtime))
.append(" sec\nApproximate throughput: ")
.append(String.format("%e", getApproxThroughput()))
.append(String.format("%.3e", getApproxThroughput()))
.append(" op/sec")
.toString();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,7 @@ public Object get() throws Exception {
});
}
});
System.err.println(m4);
assertNotNull(m4.toString());
assertTrue(m4.getRuntime() >= 1);
assertTrue(m4.getApproxThroughput() <= 200);
Expand Down

0 comments on commit de8ce71

Please sign in to comment.