Skip to content

Commit

Permalink
to uppercase var
Browse files Browse the repository at this point in the history
  • Loading branch information
arturobernalg committed Dec 18, 2020
1 parent 1b41677 commit ab14f47
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/test/java/org/apache/commons/csv/PerformanceTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ public class PerformanceTest {
private static int max = 11; // skip first test

private static int num = 0; // number of elapsed times recorded
private static final long[] elapsedTimes = new long[max];
private static final long[] ELAPSED_TIMES = new long[max];

private static final CSVFormat format = CSVFormat.EXCEL;

Expand Down Expand Up @@ -149,7 +149,7 @@ private static class Stats {
private static void show(final String msg, final Stats s, final long start) {
final long elapsed = System.currentTimeMillis() - start;
System.out.printf("%-20s: %5dms %d lines %d fields%n", msg, elapsed, s.count, s.fields);
elapsedTimes[num] = elapsed;
ELAPSED_TIMES[num] = elapsed;
num++;
}

Expand All @@ -158,7 +158,7 @@ private static void show(){
if (num > 1) {
long tot = 0;
for (int i = 1; i < num; i++) { // skip first test
tot += elapsedTimes[i];
tot += ELAPSED_TIMES[i];
}
System.out.printf("%-20s: %5dms%n%n", "Average(not first)", tot / (num - 1));
}
Expand Down

0 comments on commit ab14f47

Please sign in to comment.