Rename internal method
This commit is contained in:
parent
3d1b085a07
commit
fcb83747a2
|
@ -90,7 +90,7 @@ public class PerformanceTest {
|
||||||
System.out.println(s);
|
System.out.println(s);
|
||||||
}
|
}
|
||||||
|
|
||||||
private long readAll(final BufferedReader in) throws IOException {
|
private long readLines(final BufferedReader in) throws IOException {
|
||||||
long count = 0;
|
long count = 0;
|
||||||
while (in.readLine() != null) {
|
while (in.readLine() != null) {
|
||||||
count++;
|
count++;
|
||||||
|
@ -126,7 +126,7 @@ public class PerformanceTest {
|
||||||
final long startMillis;
|
final long startMillis;
|
||||||
try (final BufferedReader in = createBufferedReader()) {
|
try (final BufferedReader in = createBufferedReader()) {
|
||||||
startMillis = System.currentTimeMillis();
|
startMillis = System.currentTimeMillis();
|
||||||
count = readAll(in);
|
count = readLines(in);
|
||||||
}
|
}
|
||||||
final long totalMillis = System.currentTimeMillis() - startMillis;
|
final long totalMillis = System.currentTimeMillis() - startMillis;
|
||||||
bestTime = Math.min(totalMillis, bestTime);
|
bestTime = Math.min(totalMillis, bestTime);
|
||||||
|
|
Loading…
Reference in New Issue