Fixtypo in the PerformanceTest (#55)
This commit is contained in:
parent
1d12ed9d0d
commit
c8527b3d53
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue