Skip to content

Commit ba065e3

Browse files
committed
Fixed delta table to fit new algorithms
1 parent cac607b commit ba065e3

2 files changed

Lines changed: 33 additions & 6 deletions

File tree

erro_out.txt

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
../../../lib/bcprov-jdk18on-1.80.jar
2+
../../../lib/bctls-jdk18on-1.80.jar
3+
Running crypto benchmark with Bouncy Castle (version 1.80)
4+
wolfJCE version: 1.8
5+
SunJCE version: 1.8
6+
BC version: 1.8
7+
-----------------------------------------------------------------------------
8+
Symmetric Cipher Benchmark
9+
-----------------------------------------------------------------------------
10+
11+
AES/CBC/NoPadding (wolfJCE) enc 5.000 MiB 4.215 ms 237.234 MiB/s
12+
AES/CBC/NoPadding (wolfJCE) dec 5.000 MiB 3.507 ms 285.139 MiB/s
13+
AES/CBC/PKCS5Padding (wolfJCE) enc 5.000 MiB 4.213 ms 237.345 MiB/s
14+
AES/CBC/PKCS5Padding (wolfJCE) dec 5.000 MiB 3.520 ms 284.089 MiB/s
15+
AES/GCM/NoPadding (wolfJCE) enc 5.000 MiB 6.279 ms 159.264 MiB/s
16+
AES/GCM/NoPadding (wolfJCE) dec 5.000 MiB 6.314 ms 158.366 MiB/s
17+
DESede/CBC/NoPadding (wolfJCE) enc 5.000 MiB 28.514 ms 35.071 MiB/s
18+
DESede/CBC/NoPadding (wolfJCE) dec 5.000 MiB 25.339 ms 39.466 MiB/s
19+
AES/CBC/NoPadding (SunJCE) enc 5.000 MiB 4.393 ms 227.656 MiB/s
20+
AES/CBC/NoPadding (SunJCE) dec 5.000 MiB 4.094 ms 244.269 MiB/s
21+
AES/CBC/PKCS5Padding (SunJCE) enc 5.000 MiB 4.608 ms 217.007 MiB/s
22+
AES/CBC/PKCS5Padding (SunJCE) dec 5.000 MiB 4.352 ms 229.806 MiB/s
23+
AES/GCM/NoPadding (SunJCE) enc 5.000 MiB 13.276 ms 75.326 MiB/s
24+
AES/GCM/NoPadding (SunJCE) dec 5.000 MiB 13.216 ms 75.665 MiB/s
25+
../../../lib/bcprov-jdk18on-1.80.jar
26+
../../../lib/bctls-jdk18on-1.80.jar
27+

examples/provider/CryptoBenchmark.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -171,10 +171,10 @@ private static void printDeltaTable() {
171171
double deltaPercent;
172172

173173
System.out.println("\nPerformance Delta (compared to wolfJCE)");
174-
System.out.println("--------------------------------------------------------------------------------");
175-
System.out.println("| Operation | Provider | Delta | Delta |");
176-
System.out.println("| | | Value* | (%) |");
177-
System.out.println("|------------------------------------------|--------------|----------|----------|");
174+
System.out.println("------------------------------------------------------------------------------------");
175+
System.out.println("| Operation | Provider | Delta | Delta |");
176+
System.out.println("| | | Value* | (%) |");
177+
System.out.println("|----------------------------------------------|--------------|----------|----------|");
178178

179179
/* Group results by operation */
180180
groupedResults = new HashMap<>();
@@ -227,7 +227,7 @@ private static void printDeltaTable() {
227227
/* Ensure unique operation-provider combination */
228228
String uniqueKey = operation + "|" + displayProvider;
229229
if (!groupedResults.containsKey(uniqueKey)) {
230-
System.out.printf("| %-40s | %-12s | %+8.2f | %+8.1f |%n",
230+
System.out.printf("| %-44s | %-12s | %+8.2f | %+8.1f |%n",
231231
operation.replace("RSA", "RSA/ECB/PKCS1Padding RSA"),
232232
displayProvider,
233233
deltaValue,
@@ -239,7 +239,7 @@ private static void printDeltaTable() {
239239
}
240240
}
241241
}
242-
System.out.println("--------------------------------------------------------------------------------");
242+
System.out.println("------------------------------------------------------------------------------------");
243243
System.out.println("* Delta Value: MiB/s for symmetric ciphers, operations/second for RSA and ECC");
244244
}
245245

0 commit comments

Comments
 (0)