Rusha

JavaScript performance comparison

Revision 2 of this test case created by Sam Rijs

Info

We're testing Rusha against two other pure-javascript SHA1 implementations.

Preparation code

<script type="text/javascript" src="http://awesam.de/rusha/bench/rusha.js"></script>
<script type="text/javascript" src="http://awesam.de/rusha/bench/johnston.js"></script>
<script type="text/javascript" src="http://awesam.de/rusha/bench/utils.js"></script>
<script type="text/javascript" src="http://awesam.de/rusha/bench/sha1.js"></script>
<script type="text/javascript" src="http://awesam.de/rusha/bench/random.js"></script>
<script type="text/javascript">
var bytes = randomBytes(2 * 1024 * 1024);
var rusha = new Rusha(2 * 1024 * 1024);
</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
Rusha
rusha.digestFromBuffer(bytes);
pending…
Johnston
johnston(bytes);
pending…
Cifre
cifre_utils.tohex(cifre_sha1(bytes));
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