summaryrefslogtreecommitdiff
path: root/libbb/Config.src
diff options
context:
space:
mode:
authorDenys Vlasenko2021-12-30 13:07:12 +0100
committerDenys Vlasenko2021-12-30 13:17:16 +0100
commit25aadc893d21b35f7d34a9d1edc843632e7abd8f (patch)
treef8d2d860f06eeccb254e071e39213bc2a3f723ef /libbb/Config.src
parent9173c9cce48dc4c867fb06bb72e8c762740c5c86 (diff)
downloadbusybox-25aadc893d21b35f7d34a9d1edc843632e7abd8f.zip
busybox-25aadc893d21b35f7d34a9d1edc843632e7abd8f.tar.gz
libbb/sha1: add config-selectable fully unrolled version, closes 14391
function old new delta sha1_process_block64 364 4167 +3803 static.rconsts 16 - -16 ------------------------------------------------------------------------------ (add/remove: 0/1 grow/shrink: 1/0 up/down: 3803/-16) Total: 3787 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'libbb/Config.src')
-rw-r--r--libbb/Config.src25
1 files changed, 18 insertions, 7 deletions
diff --git a/libbb/Config.src b/libbb/Config.src
index 24b31fa..13188ef 100644
--- a/libbb/Config.src
+++ b/libbb/Config.src
@@ -42,21 +42,32 @@ config MD5_SMALL
default 1 # all "fast or small" options default to small
range 0 3
help
- Trade binary size versus speed for the md5sum algorithm.
+ Trade binary size versus speed for the md5 algorithm.
Approximate values running uClibc and hashing
linux-2.4.4.tar.bz2 were:
- value user times (sec) text size (386)
- 0 (fastest) 1.1 6144
- 1 1.4 5392
- 2 3.0 5088
- 3 (smallest) 5.1 4912
+ value user times (sec) text size (386)
+ 0 (fastest) 1.1 6144
+ 1 1.4 5392
+ 2 3.0 5088
+ 3 (smallest) 5.1 4912
+
+config SHA1_SMALL
+ int "SHA1: Trade bytes for speed (0:fast, 3:slow)"
+ default 3 # all "fast or small" options default to small
+ range 0 3
+ help
+ Trade binary size versus speed for the sha1 algorithm.
+ throughput MB/s size of sha1_process_block64
+ value 486 x86-64 486 x86-64
+ 0 339 374 4149 4167
+ 1,2,3 200 195 358 380
config SHA3_SMALL
int "SHA3: Trade bytes for speed (0:fast, 1:slow)"
default 1 # all "fast or small" options default to small
range 0 1
help
- Trade binary size versus speed for the sha3sum algorithm.
+ Trade binary size versus speed for the sha3 algorithm.
SHA3_SMALL=0 compared to SHA3_SMALL=1 (approximate):
64-bit x86: +270 bytes of code, 45% faster
32-bit x86: +450 bytes of code, 75% faster