Depends on the hash. SHA256 is fast.

Reply to this note

Please Login to reply.

Discussion

i use an AVX2 SIMD version in my code also... i've tested it and it's more than 10x as fast as a standard CPU version

blake2 and blake3 are both very fast as well but my point still stands, it's not an expensive operation and is really an essential operation now, and it's something that javascript execution environments should provide, all of these hash functions, they are the current secure hashes, md5, SHA1, toast.