inline loop test
JavaScript performance comparison
Info
Test difference between local caching of loop stop condition or not
Preparation code
<script>
Benchmark.prototype.setup = function() {
var anObject = {
array: []
};
for(var i=0, countI=1000;i<countI;i++) {
anObject.array.push(i);
}
};
</script>
Test runner
Warning! For accurate results, please disable Firebug before running the tests. (Why?)
Java applet disabled.
| Test | Ops/sec | |
|---|---|---|
Local caching of length |
|
pending… |
no caching of length |
|
pending… |
You can edit these tests or add even more tests to this page by appending /edit to the URL.
0 comments