SHA-512 is 1.5x faster than SHA-256 on 64-bit platforms
crypto.stackexchange.com
SHA-512 is 1.5x faster than SHA-256 on 64-bit platforms
1–10 of 15 posts
Re: SHA-512 is 1.5x faster than SHA-256 on 64-bit platforms
#2 BLAKE2s (32-bit words) - 554 MiB/s
BLAKE2b (64-bit words) - 890 MiB/s
(source: https://blake2.net/)The difference is also clear in pure JavaScript implementations — JS doesn't have native 64-bit integer operations yet, so SHA-512 is slower there:
SHA-256 - 103.17 MiB/s
SHA-512 - 34.29 MiB/s
Note that since SHA-512 eats 128-byte blocks, while SHA-256 64-byte blocks, hashing very short strings may be faster with SHA-256 even on 64-bit platforms (the same applies to BLAKE2).Re: SHA-512 is 1.5x faster than SHA-256 on 64-bit platforms
#3Re: SHA-512 is 1.5x faster than SHA-256 on 64-bit platforms
#4Re: SHA-512 is 1.5x faster than SHA-256 on 64-bit platforms
#5Re: SHA-512 is 1.5x faster than SHA-256 on 64-bit platforms
#6Re: SHA-512 is 1.5x faster than SHA-256 on 64-bit platforms
#7Re: SHA-512 is 1.5x faster than SHA-256 on 64-bit platforms
#8I would be curious to see this compared with SHA-384, and across multiple languages.
Re: SHA-512 is 1.5x faster than SHA-256 on 64-bit platforms
#9Yep. Taking advantage of SHA512's superior performance while still producing a 256 bit result is the raison d'être of SHA-512/256.
Re: SHA-512 is 1.5x faster than SHA-256 on 64-bit platforms
#10Similarly: BLAKE2s (32-bit words) - 554 MiB/s BLAKE2b (64-bit words) - 890 MiB/s (source: https://blake2.net/ ) The difference is also clear in pure JavaScript implementations — JS doesn't have native 64-bit integer operations yet, so SHA-512 is slower there: SHA-256 - 103.17 MiB/s SHA-512 - 34.29 MiB/s Note that since SHA-512 eats 128-byte blocks, while SHA-256 64-byte blocks, hashing very short strings may be faste…
Is not JS cryptography a bad idea?