2D Array of Numbers
JavaScript performance comparison
Preparation code
<script>
Benchmark.prototype.setup = function() {
var classic = [
[1, 2, 3],
[1, 2, 3],
[1, 2, 3]
];
var clTyped = [
new Int8Array(3),
new Int8Array(3),
new Int8Array(3)
];
var flat = [1, 2, 3, 1, 2, 3, 1, 2, 3];
var flTyped = new Int8Array(flat.length);
var width = 3;
};
</script>
Test runner
Warning! For accurate results, please disable Firebug before running the tests. (Why?)
Java applet disabled.
Test | Ops/sec | |
---|---|---|
Classic
|
|
pending… |
Flat
|
|
pending… |
Classic Typed
|
|
pending… |
Flat Typed
|
|
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.
- Revision 1: published Rohit Vighne
- Revision 2: published Ken
- Revision 3: published Yanapa
- Revision 5: published
- Revision 6: published
- Revision 11: published Rod McNew
- Revision 12: published Rod McNew
0 Comments