Skip to content

Commit eca7566

Browse files
committed
Remove performance measurement and println() calls
1 parent 7c82439 commit eca7566

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

pg/src/test/java/org/bouncycastle/openpgp/test/CRC24Test.java

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -85,8 +85,6 @@ public void performanceTest()
8585
fastImpl.update(0);
8686
fastImpl.reset();
8787

88-
long start = System.currentTimeMillis();
89-
9088
for (int j = 0; j < 100; ++j)
9189
{
9290
for (int i = 0; i != LARGE_RANDOM.length; i += 3)
@@ -95,7 +93,6 @@ public void performanceTest()
9593
}
9694
}
9795
int defVal = defaultImpl.getValue();
98-
long afterDefault = System.currentTimeMillis();
9996

10097
for (int j = 0; j < 100; ++j)
10198
{
@@ -105,14 +102,7 @@ public void performanceTest()
105102
}
106103
}
107104
int fastVal = fastImpl.getValue();
108-
long afterFast = System.currentTimeMillis();
109105

110106
isEquals("Calculated value of default and fast CRC-24 implementations diverges", defVal, fastVal);
111-
long defDuration = afterDefault - start;
112-
System.out.println("Default Implementation: " + defDuration / 1000 + "s" + defDuration % 1000);
113-
114-
long fastDuration = afterFast - afterDefault;
115-
System.out.println("Fast Implementation: " + fastDuration / 1000 + "s" + fastDuration % 1000);
116-
117107
}
118108
}

0 commit comments

Comments
 (0)