cers-array-gc
JavaScript performance comparison
Test case created by Christian Sonne
Test runner
Warning! For accurate results, please disable Firebug before running the tests. (Why?)
Java applet disabled.
Testing in unknown unknown
| Test |
Ops/sec |
"local" array |
var i,o; for (i=0; i<1024; i++) { var arr = new Array(i); for (o=0; o<i; o++) { arr[o]=o; } }
|
pending… |
"global" array |
var i,o,arr; for (i=0; i<1024; i++) { arr = new Array(i); for (o=0; o<i; o++) { arr[o]=o; } }
|
pending… |
less GC |
var i,o,arr=[]; for (i=0; i<1024; i++) { var arr2 = new Array(i); for (o=0; o<i; o++) { arr[o]=o; } }
|
pending… |
You can edit these tests or add even more tests to this page by appending /edit to the URL.
Compare results of other browsers
0 comments