Rusha

JavaScript performance comparison

Test case created by Sam Rijs

Info

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

Preparation code

<script type="text/javascript" src="https://raw.github.com/srijs/rusha/master/rusha.js"></script>
<script type="text/javascript" src="https://raw.github.com/srijs/rusha/master/examples/bench/johnston.js"></script>
<script type="text/javascript" src="https://raw.github.com/srijs/rusha/master/examples/bench/cifre/utils.js"></script>
<script type="text/javascript" src="https://raw.github.com/srijs/rusha/master/examples/bench/cifre/sha1.js"></script>
<script type="text/javascript" src="https://raw.github.com/srijs/rusha/master/examples/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