Skip to content

Typo in Throughput log #71

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 23, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 15 additions & 15 deletions benchmark/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,21 +13,21 @@ You can also compile this example with the [mbed Online Compiler](https://develo
The output in the terminal window should be similar to this:

```
SHA-256 : 1673 Kb/s, 70 cycles/byte
SHA-512 : 546 Kb/s, 215 cycles/byte
AES-CBC-128 : 1428 Kb/s, 82 cycles/byte
AES-CBC-192 : 1260 Kb/s, 93 cycles/byte
AES-CBC-256 : 1127 Kb/s, 104 cycles/byte
AES-GCM-128 : 486 Kb/s, 242 cycles/byte
AES-GCM-192 : 464 Kb/s, 253 cycles/byte
AES-GCM-256 : 445 Kb/s, 264 cycles/byte
AES-CCM-128 : 610 Kb/s, 192 cycles/byte
AES-CCM-192 : 547 Kb/s, 214 cycles/byte
AES-CCM-256 : 496 Kb/s, 237 cycles/byte
CTR_DRBG (NOPR) : 1139 Kb/s, 102 cycles/byte
CTR_DRBG (PR) : 826 Kb/s, 142 cycles/byte
HMAC_DRBG SHA-256 (NOPR) : 193 Kb/s, 611 cycles/byte
HMAC_DRBG SHA-256 (PR) : 170 Kb/s, 695 cycles/byte
SHA-256 : 1673 KB/s, 70 cycles/byte
SHA-512 : 546 KB/s, 215 cycles/byte
AES-CBC-128 : 1428 KB/s, 82 cycles/byte
AES-CBC-192 : 1260 KB/s, 93 cycles/byte
AES-CBC-256 : 1127 KB/s, 104 cycles/byte
AES-GCM-128 : 486 KB/s, 242 cycles/byte
AES-GCM-192 : 464 KB/s, 253 cycles/byte
AES-GCM-256 : 445 KB/s, 264 cycles/byte
AES-CCM-128 : 610 KB/s, 192 cycles/byte
AES-CCM-192 : 547 KB/s, 214 cycles/byte
AES-CCM-256 : 496 KB/s, 237 cycles/byte
CTR_DRBG (NOPR) : 1139 KB/s, 102 cycles/byte
CTR_DRBG (PR) : 826 KB/s, 142 cycles/byte
HMAC_DRBG SHA-256 (NOPR) : 193 KB/s, 611 cycles/byte
HMAC_DRBG SHA-256 (PR) : 170 KB/s, 695 cycles/byte
RSA-2048 : 28 ms/ public
RSA-2048 : 953 ms/private
RSA-4096 : 93 ms/ public
Expand Down
2 changes: 1 addition & 1 deletion benchmark/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ do { \
CODE; \
} \
\
mbedtls_printf( "%9lu Kb/s, %9lu cycles/byte\r\n", \
mbedtls_printf( "%9lu KB/s, %9lu cycles/byte\r\n", \
i * BUFSIZE / 1024, \
( mbedtls_timing_hardclock() - tsc ) / ( j * BUFSIZE ) ); \
} while( 0 )
Expand Down
52 changes: 26 additions & 26 deletions tests/benchmark.log
Original file line number Diff line number Diff line change
@@ -1,26 +1,26 @@
SHA-256 :\s*\d+ Kb/s,\s*\d+ cycles/byte
SHA-512 :\s*\d+ Kb/s,\s*\d+ cycles/byte
AES-CBC-128 :\s*\d+ Kb/s,\s*\d+ cycles/byte
AES-CBC-192 :\s*\d+ Kb/s,\s*\d+ cycles/byte
AES-CBC-256 :\s*\d+ Kb/s,\s*\d+ cycles/byte
AES-GCM-128 :\s*\d+ Kb/s,\s*\d+ cycles/byte
AES-GCM-192 :\s*\d+ Kb/s,\s*\d+ cycles/byte
AES-GCM-256 :\s*\d+ Kb/s,\s*\d+ cycles/byte
AES-CCM-128 :\s*\d+ Kb/s,\s*\d+ cycles/byte
AES-CCM-192 :\s*\d+ Kb/s,\s*\d+ cycles/byte
AES-CCM-256 :\s*\d+ Kb/s,\s*\d+ cycles/byte
CTR_DRBG \(NOPR\) :\s*\d+ Kb/s,\s*\d+ cycles/byte
CTR_DRBG \(PR\) :\s*\d+ Kb/s,\s*\d+ cycles/byte
HMAC_DRBG SHA-256 \(NOPR\) :\s*\d+ Kb/s,\s*\d+ cycles/byte
HMAC_DRBG SHA-256 \(PR\) :\s*\d+ Kb/s,\s*\d+ cycles/byte
RSA-2048 :\s*\d+ ms/ public
RSA-2048 :\s*\d+ ms/private
RSA-4096 :\s*\d+ ms/ public
RSA-4096 :\s*\d+ ms/private
ECDHE-secp384r1 :\s*\d+ ms/handshake
ECDHE-secp256r1 :\s*\d+ ms/handshake
ECDHE-Curve25519 :\s*\d+ ms/handshake
ECDH-secp384r1 :\s*\d+ ms/handshake
ECDH-secp256r1 :\s*\d+ ms/handshake
ECDH-Curve25519 :\s*\d+ ms/handshake
DONE
SHA-256 :\s*\d+ KB/s,\s*\d+ cycles/byte
SHA-512 :\s*\d+ KB/s,\s*\d+ cycles/byte
AES-CBC-128 :\s*\d+ KB/s,\s*\d+ cycles/byte
AES-CBC-192 :\s*\d+ KB/s,\s*\d+ cycles/byte
AES-CBC-256 :\s*\d+ KB/s,\s*\d+ cycles/byte
AES-GCM-128 :\s*\d+ KB/s,\s*\d+ cycles/byte
AES-GCM-192 :\s*\d+ KB/s,\s*\d+ cycles/byte
AES-GCM-256 :\s*\d+ KB/s,\s*\d+ cycles/byte
AES-CCM-128 :\s*\d+ KB/s,\s*\d+ cycles/byte
AES-CCM-192 :\s*\d+ KB/s,\s*\d+ cycles/byte
AES-CCM-256 :\s*\d+ KB/s,\s*\d+ cycles/byte
CTR_DRBG \(NOPR\) :\s*\d+ KB/s,\s*\d+ cycles/byte
CTR_DRBG \(PR\) :\s*\d+ KB/s,\s*\d+ cycles/byte
HMAC_DRBG SHA-256 \(NOPR\) :\s*\d+ KB/s,\s*\d+ cycles/byte
HMAC_DRBG SHA-256 \(PR\) :\s*\d+ KB/s,\s*\d+ cycles/byte
RSA-2048 :\s*\d+ ms/ public
RSA-2048 :\s*\d+ ms/private
RSA-4096 :\s*\d+ ms/ public
RSA-4096 :\s*\d+ ms/private
ECDHE-secp384r1 :\s*\d+ ms/handshake
ECDHE-secp256r1 :\s*\d+ ms/handshake
ECDHE-Curve25519 :\s*\d+ ms/handshake
ECDH-secp384r1 :\s*\d+ ms/handshake
ECDH-secp256r1 :\s*\d+ ms/handshake
ECDH-Curve25519 :\s*\d+ ms/handshake
DONE