Fixtypo in the PerformanceTest (#55)

This commit is contained in:
Chen 2020-01-21 07:03:22 +08:00 committed by Gary Gregory
parent 1d12ed9d0d
commit c8527b3d53
1 changed files with 2 additions and 3 deletions

View File

@ -38,7 +38,7 @@ import org.junit.jupiter.api.Test;
/**
* Tests performance.
*
* To run this test, use: mvn test -Dtest=PeformanceTest
* To run this test, use: mvn test -Dtest=PerformanceTest
*/
@SuppressWarnings("boxing") // test code
public class PerformanceTest {
@ -112,12 +112,11 @@ public class PerformanceTest {
@Test
public void testReadBigFile() throws Exception {
long bestTime = Long.MAX_VALUE;
long count;
for (int i = 0; i < this.max; i++) {
final long startMillis;
long count;
try (final BufferedReader in = this.createBufferedReader()) {
startMillis = System.currentTimeMillis();
count = 0;
count = this.readAll(in);
}
final long totalMillis = System.currentTimeMillis() - startMillis;