Typed array iteration
JavaScript performance comparison
Info
Testing with Int32
Preparation code
<script>
var classic = new Array(500);
var unfixed = new Int32Array(); // Don't do this
var fixed = new Int32Array(500);
for (var i = 0; i < 500; ++i) {
classic[i] = 0;
unfixed[i] = 0;
fixed[i] = 0;
}
</script>
Test runner
Warning! For accurate results, please disable Firebug before running the tests. (Why?)
Java applet disabled.
| Test | Ops/sec | |
|---|---|---|
Classic |
|
pending… |
Unfixed |
|
pending… |
Fixed |
|
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:
- Revision 1: published by Bruno Garcia
- Revision 2: published by vjeux
- Revision 3: published by vjeux
- Revision 6: published by vjeux
- Revision 9: published by vjeux
- Revision 10: published by vjeux
- Revision 13: published by vjeux
- Revision 22: published
- Revision 23: published
- Revision 25: published
- Revision 26: published
- Revision 27: published
- Revision 28: published
- Revision 29: published
0 comments