[issue39298] add BLAKE3 to hashlib
Jack O'Connor
report at bugs.python.org
Thu Mar 24 16:30:46 EDT 2022
Jack O'Connor <oconnor663 at gmail.com> added the comment:
I did reply to that point above with some baseless speculation, but now I can back up my baseless speculation with unscientific data :)
https://gist.github.com/oconnor663/aed7016c9dbe5507510fc50faceaaa07
According to whatever `powerstat -R` measures on my laptop, running hardware-accelerated SHA-256 in a loop for a minute or so takes 26.86 Watts on average. Doing the same with AVX-512 BLAKE3 takes 29.53 Watts, 10% more. Factoring in the 4.69x difference in throughput reported by those loops, the overall energy/byte for BLAKE3 is 4.27x lower than SHA-256. This is my first time running a power benchmark, so if this sounds implausible hopefully someone can catch my mistakes.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue39298>
_______________________________________
More information about the Python-bugs-list
mailing list