From 05e7350ee42dae8a60c43c7ebb843fe329f617ea Mon Sep 17 00:00:00 2001 From: Loup Vaillant Date: Sun, 28 Jan 2018 17:07:39 +0100 Subject: [PATCH] Speed benchmark Mb/s -> megabytes per second --- tests/speed-sodium.c | 18 +++++++++--------- tests/speed.c | 18 +++++++++--------- 2 files changed, 18 insertions(+), 18 deletions(-) diff --git a/tests/speed-sodium.c b/tests/speed-sodium.c index 4b38ed8..46c4768 100644 --- a/tests/speed-sodium.c +++ b/tests/speed-sodium.c @@ -124,15 +124,15 @@ static u64 edDSA_check(void) int main() { SODIUM_INIT; - print("Chacha20 ", chacha20() * MULT/DIV, "Mb/s" ); - print("Poly1305 ", poly1305() * MULT/DIV, "Mb/s" ); - print("Auth'd encryption", authenticated() * MULT/DIV, "Mb/s" ); - print("Blake2b ", blake2b() * MULT/DIV, "Mb/s" ); - print("Sha512 ", sha512() * MULT/DIV, "Mb/s" ); - print("Argon2i ", argon2i() * MULT/DIV, "Mb/s (3 passes)" ); - print("x25519 ", x25519() / DIV, "exchanges per second"); - print("EdDSA(sign) ", edDSA_sign() / DIV, "signatures per second"); - print("EdDSA(check) ", edDSA_check() / DIV, "checks per second"); + print("Chacha20 ",chacha20() *MULT/DIV,"megabytes per second"); + print("Poly1305 ",poly1305() *MULT/DIV,"megabytes per second"); + print("Auth'd encryption",authenticated()*MULT/DIV,"megabytes per second"); + print("Blake2b ",blake2b() *MULT/DIV,"megabytes per second"); + print("Sha512 ",sha512() *MULT/DIV,"megabytes per second"); + print("Argon2i, 3 passes",argon2i() *MULT/DIV,"megabytes per second"); + print("x25519 ",x25519() /DIV,"exchanges per second"); + print("EdDSA(sign) ",edDSA_sign() /DIV,"signatures per second"); + print("EdDSA(check) ",edDSA_check() /DIV,"checks per second"); printf("\n"); return 0; } diff --git a/tests/speed.c b/tests/speed.c index a04dc6b..62b31e3 100644 --- a/tests/speed.c +++ b/tests/speed.c @@ -127,15 +127,15 @@ static u64 edDSA_check(void) int main() { - print("Chacha20 ", chacha20() * MULT/DIV, "Mb/s" ); - print("Poly1305 ", poly1305() * MULT/DIV, "Mb/s" ); - print("Auth'd encryption", authenticated() * MULT/DIV, "Mb/s" ); - print("Blake2b ", blake2b() * MULT/DIV, "Mb/s" ); - print("Sha512 ", sha512() * MULT/DIV, "Mb/s" ); - print("Argon2i ", argon2i() * MULT/DIV, "Mb/s (3 passes)" ); - print("x25519 ", x25519() / DIV, "exchanges per second"); - print("EdDSA(sign) ", edDSA_sign() / DIV, "signatures per second"); - print("EdDSA(check) ", edDSA_check() / DIV, "checks per second"); + print("Chacha20 ",chacha20() *MULT/DIV,"megabytes per second"); + print("Poly1305 ",poly1305() *MULT/DIV,"megabytes per second"); + print("Auth'd encryption",authenticated()*MULT/DIV,"megabytes per second"); + print("Blake2b ",blake2b() *MULT/DIV,"megabytes per second"); + print("Sha512 ",sha512() *MULT/DIV,"megabytes per second"); + print("Argon2i, 3 passes",argon2i() *MULT/DIV,"megabytes per second"); + print("x25519 ",x25519() /DIV,"exchanges per second"); + print("EdDSA(sign) ",edDSA_sign() /DIV,"signatures per second"); + print("EdDSA(check) ",edDSA_check() /DIV,"checks per second"); printf("\n"); return 0; } -- 2.47.3