array-object-sparse
JavaScript performance comparison
Preparation code
<script>
var arr1 = [];
arr1[100000000] = "rubbish";
var arr2 = ["value"];
var obj = {
"100000000": "value"
};
var ret;
</script>
Test runner
Warning! For accurate results, please disable Firebug before running the tests. (Why?)
Java applet disabled.
| Test | Ops/sec | |
|---|---|---|
array sparse |
|
pending… |
array normal |
|
pending… |
object |
|
pending… |
You can edit these tests or add even more tests to this page by appending /edit to the URL.
0 comments