From cdf0241ed0e7b287c2e4965874c582ce01577c82 Mon Sep 17 00:00:00 2001 From: David Garske Date: Sun, 9 Jun 2019 19:43:55 +0200 Subject: [PATCH] Updated benchmark with SHA512 "slow" version, which performs faster with the RISC-V compiler optimizations. --- IDE/ECLIPSE/SIFIVE/README.md | 2 +- IDE/ECLIPSE/SIFIVE/user_settings.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/IDE/ECLIPSE/SIFIVE/README.md b/IDE/ECLIPSE/SIFIVE/README.md index 385ddceee..5ce2271bc 100644 --- a/IDE/ECLIPSE/SIFIVE/README.md +++ b/IDE/ECLIPSE/SIFIVE/README.md @@ -158,7 +158,7 @@ CHA-POLY 675 KB took 1.021 seconds, 661.060 KB/s POLY1305 2 MB took 1.007 seconds, 2.230 MB/s SHA 1 MB took 1.016 seconds, 1.321 MB/s SHA-256 425 KB took 1.005 seconds, 422.909 KB/s -SHA-512 25 KB took 2.043 seconds, 12.239 KB/s +SHA-512 225 KB took 1.009 seconds, 223.073 KB/s HMAC-SHA 1 MB took 1.010 seconds, 1.378 MB/s HMAC-SHA256 425 KB took 1.037 seconds, 409.781 KB/s HMAC-SHA512 25 KB took 2.075 seconds, 12.050 KB/s diff --git a/IDE/ECLIPSE/SIFIVE/user_settings.h b/IDE/ECLIPSE/SIFIVE/user_settings.h index 9e42bb476..2f7f136cb 100644 --- a/IDE/ECLIPSE/SIFIVE/user_settings.h +++ b/IDE/ECLIPSE/SIFIVE/user_settings.h @@ -312,7 +312,7 @@ extern "C" { #endif /* over twice as small, but 50% slower */ - //#define USE_SLOW_SHA512 + #define USE_SLOW_SHA512 #endif /* Sha3 */