From 899dd84b5ac34500eca27a67eed80f5ed2c2bec7 Mon Sep 17 00:00:00 2001 From: bunnie Date: Thu, 8 Feb 2024 17:42:55 +0800 Subject: [PATCH] update benchmark numbers to reflect performance impact of fixes --- services/shellchat/src/cmds/sha.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/services/shellchat/src/cmds/sha.rs b/services/shellchat/src/cmds/sha.rs index ef6f9b519..aa8ae4cb6 100644 --- a/services/shellchat/src/cmds/sha.rs +++ b/services/shellchat/src/cmds/sha.rs @@ -47,7 +47,8 @@ power consumption - ~50% power savings to use hardware hasher v0.10.8 API implementation -TEST_MAX_LEN = 8192 (fixed length) / TEST_ITERS = 1000: hw 11.464ms/hash, sw 21.502ms/hash +TEST_MAX_LEN = 8192 (fixed length) / TEST_ITERS = 1000: hw 11.464ms/hash, sw 21.502ms/hash (with trng ID bug (ID was not regenerated on each iteration), oops) +TEST_MAX_LEN = 8192 (fixed length) / TEST_ITERS = 1000: hw 12.196ms/hash, sw 21.643ms/hash */ pub fn benchmark_thread(sid0: usize, sid1: usize, sid2: usize, sid3: usize) {