Basic hash head-to-head

JavaScript performance comparison

Info

Tests comprise of an empty string (x 10), then the UCS2 character code range of of to 65535, split into 256 character chunks (x 256), and finally one big string of the complete UCS2 character range (x 1). Some of the functions below claim to utf8Encode the string so that they can encode it. Errors are when this encoding has failed and the function falls over or if the routine does not produce hashes that match others (eq. openssl).