asm_js_zlib_bench

JavaScript performance comparison

Revision 3 of this test case created by tomByrer

Preparation code

<script src="https://raw.github.com/ukyo/zlib-asm/master/dest/zlib-asm.js"></script>
<script src="https://raw.github.com/ukyo/zlib-asm/master/dest/zlib-noasm.js"></script>
<script>
var bytes = new Uint8Array(7000);
</script>
    

Preparation code output

<script src="https://raw.github.com/ukyo/zlib-asm/master/dest/zlib-noasm.js"></script> <script> var bytes = new Uint8Array(7000); </script>

Test runner

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

Java applet disabled.

Testing in CCBot 2.0.0 / Other 0.0.0
Test Ops/sec
asm
zlib_asm.compress(bytes);
pending…
noasm
zlib_noasm.compress(bytes);
pending…
asm2
zlib_asm.compress(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.

1 Comment

tomByrer (revision owner) commented :

A 7000 byte file is not a big text file, like HTML, larger CSS, or a medium-small JS.