Skip to content

Commit 74de0aa

Browse files
Ron EldorRon Eldor
Ron Eldor
authored and
Ron Eldor
committed
Typo in Throughput log
Throughput is printed in Kb instead of KB Fixed issue #69
1 parent 4459c46 commit 74de0aa

File tree

2 files changed

+27
-27
lines changed

2 files changed

+27
-27
lines changed

benchmark/main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ do { \
213213
CODE; \
214214
} \
215215
\
216-
mbedtls_printf( "%9lu Kb/s, %9lu cycles/byte\r\n", \
216+
mbedtls_printf( "%9lu KB/s, %9lu cycles/byte\r\n", \
217217
i * BUFSIZE / 1024, \
218218
( mbedtls_timing_hardclock() - tsc ) / ( j * BUFSIZE ) ); \
219219
} while( 0 )

tests/benchmark.log

Lines changed: 26 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,26 @@
1-
SHA-256 :\s*\d+ Kb/s,\s*\d+ cycles/byte
2-
SHA-512 :\s*\d+ Kb/s,\s*\d+ cycles/byte
3-
AES-CBC-128 :\s*\d+ Kb/s,\s*\d+ cycles/byte
4-
AES-CBC-192 :\s*\d+ Kb/s,\s*\d+ cycles/byte
5-
AES-CBC-256 :\s*\d+ Kb/s,\s*\d+ cycles/byte
6-
AES-GCM-128 :\s*\d+ Kb/s,\s*\d+ cycles/byte
7-
AES-GCM-192 :\s*\d+ Kb/s,\s*\d+ cycles/byte
8-
AES-GCM-256 :\s*\d+ Kb/s,\s*\d+ cycles/byte
9-
AES-CCM-128 :\s*\d+ Kb/s,\s*\d+ cycles/byte
10-
AES-CCM-192 :\s*\d+ Kb/s,\s*\d+ cycles/byte
11-
AES-CCM-256 :\s*\d+ Kb/s,\s*\d+ cycles/byte
12-
CTR_DRBG \(NOPR\) :\s*\d+ Kb/s,\s*\d+ cycles/byte
13-
CTR_DRBG \(PR\) :\s*\d+ Kb/s,\s*\d+ cycles/byte
14-
HMAC_DRBG SHA-256 \(NOPR\) :\s*\d+ Kb/s,\s*\d+ cycles/byte
15-
HMAC_DRBG SHA-256 \(PR\) :\s*\d+ Kb/s,\s*\d+ cycles/byte
16-
RSA-2048 :\s*\d+ ms/ public
17-
RSA-2048 :\s*\d+ ms/private
18-
RSA-4096 :\s*\d+ ms/ public
19-
RSA-4096 :\s*\d+ ms/private
20-
ECDHE-secp384r1 :\s*\d+ ms/handshake
21-
ECDHE-secp256r1 :\s*\d+ ms/handshake
22-
ECDHE-Curve25519 :\s*\d+ ms/handshake
23-
ECDH-secp384r1 :\s*\d+ ms/handshake
24-
ECDH-secp256r1 :\s*\d+ ms/handshake
25-
ECDH-Curve25519 :\s*\d+ ms/handshake
26-
DONE
1+
SHA-256 :\s*\d+ KB/s,\s*\d+ cycles/byte
2+
SHA-512 :\s*\d+ KB/s,\s*\d+ cycles/byte
3+
AES-CBC-128 :\s*\d+ KB/s,\s*\d+ cycles/byte
4+
AES-CBC-192 :\s*\d+ KB/s,\s*\d+ cycles/byte
5+
AES-CBC-256 :\s*\d+ KB/s,\s*\d+ cycles/byte
6+
AES-GCM-128 :\s*\d+ KB/s,\s*\d+ cycles/byte
7+
AES-GCM-192 :\s*\d+ KB/s,\s*\d+ cycles/byte
8+
AES-GCM-256 :\s*\d+ KB/s,\s*\d+ cycles/byte
9+
AES-CCM-128 :\s*\d+ KB/s,\s*\d+ cycles/byte
10+
AES-CCM-192 :\s*\d+ KB/s,\s*\d+ cycles/byte
11+
AES-CCM-256 :\s*\d+ KB/s,\s*\d+ cycles/byte
12+
CTR_DRBG \(NOPR\) :\s*\d+ KB/s,\s*\d+ cycles/byte
13+
CTR_DRBG \(PR\) :\s*\d+ KB/s,\s*\d+ cycles/byte
14+
HMAC_DRBG SHA-256 \(NOPR\) :\s*\d+ KB/s,\s*\d+ cycles/byte
15+
HMAC_DRBG SHA-256 \(PR\) :\s*\d+ KB/s,\s*\d+ cycles/byte
16+
RSA-2048 :\s*\d+ ms/ public
17+
RSA-2048 :\s*\d+ ms/private
18+
RSA-4096 :\s*\d+ ms/ public
19+
RSA-4096 :\s*\d+ ms/private
20+
ECDHE-secp384r1 :\s*\d+ ms/handshake
21+
ECDHE-secp256r1 :\s*\d+ ms/handshake
22+
ECDHE-Curve25519 :\s*\d+ ms/handshake
23+
ECDH-secp384r1 :\s*\d+ ms/handshake
24+
ECDH-secp256r1 :\s*\d+ ms/handshake
25+
ECDH-Curve25519 :\s*\d+ ms/handshake
26+
DONE

0 commit comments

Comments
 (0)