sha256

JavaScript performance comparison

Revision 2 of this test case created by Tyler Kellen

Preparation code

<script src="//ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>
<script src="http://www.bichlmeier.info/sha256.js"></script>
<script src="http://www.webtoolkit.info/djs/webtoolkit.sha256.js"></script>
<script src="http://www.movable-type.co.uk/scripts/utf8.js"></script>
<script src="http://www.movable-type.co.uk/scripts/sha256.js"></script>
<script src="http://crypto-js.googlecode.com/files/2.2.0-crypto-sha256.js"></script>
<script src="http://point-at-infinity.org/jssha256/jssha256.js"></script>
<script src="http://code.alexweber.com.br/jquery/sha256/jquery.sha256.js"></script>
<script src="https://raw.github.com/h2non/jsHashes/master/client/src/hashes.js"></script>

<script>
  var digest;
</script>

Preparation code output

Test runner

Warning! For accurate results, please disable Firebug before running the tests. (Why?)

Java applet disabled.

Testing in unknown unknown
Test Ops/sec
bichlmeier
digest = sha256_digest("message to digest");
pending…
webtoolkit
digest = SHA256("message to digest");
pending…
movable-type.co.uk
digest = Sha256.hash("message to digest");
pending…
crypto-js
digest = Crypto.SHA256("message to digest");
pending…
Poettering
digest = SHA256_hash("message to digest");
pending…
Weber
digest = $.sha256("message to digest");
pending…
jsHashes
digest = Hashes.SHA256().hex("message to digest")
pending…

Compare results of other browsers

Revisions

You can edit these tests or add even more tests to this page by appending /edit to the URL. Here’s a list of current revisions for this page:

0 comments

Add a comment