Repository navigation
MD5 at OpenSSL's speed or better on AMD Zen.
- MD5 holds each step's early sum behind an empty
asmbarrier, so on x86-64 the step's last addition stays a two-operandaddinstead of a three-operandlea, which takes two cycles on Zen. The barrier emits no instruction; on AArch64 the compiled steps keep the same instructions. At 1 MiB against OpenSSL (crimson-knight/grant run 46163811839), MD5 went from 0.86 to 1.06 times its speed on EPYC 7763 (Zen 3) and from 0.87 to 1.06 on EPYC 9V45 (Zen 5); Xeon 6975P-C was already there and measures 1.05 to 1.06. (#50)
Commit: cc0948fd41b9026ceed2a60e601b8e3088d9a6f2
Tree: 4c208fc48d770aa75a36942caeca90f814a761d0
Tag object: bbd92df6ca5c07b8d98cc98e20d3fb135467c93d
Tarball: beryl-0.2.5.tar.gz (git archive --format=tar.gz --prefix=beryl-0.2.5/ cc0948fd41b9026ceed2a60e601b8e3088d9a6f2)
Tarball sha256: 781859eb609900a0c3581306ac3623024f4bbcf8a83b706dfc93c0a0bb0a1fd2
The tarball was built twice from the commit and gave the same sha256 both times, and the copy attached here was downloaded again three times and matched each time.