Array preallocation performance
JavaScript performance comparison
Preparation code
<script>
Benchmark.prototype.setup = function() {
window.growFactor = 1000;
};
</script>
Test runner
Warning! For accurate results, please disable Firebug before running the tests. (Why?)
Java applet disabled.
| Test | Ops/sec | |
|---|---|---|
for-loop Fill (1x) |
|
pending… |
for-loop Fill (1x; Not initialized)) |
|
pending… |
for-loop Fill (65x) |
|
pending… |
for-loop Fill (65x; Not initialized) |
|
pending… |
for-loop Fill (65x) alt initialized |
|
pending… |
for-loop Fill (65x) alt not initialized |
|
pending… |
for-loop Fill (1x) alt |
|
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 Valerio
- Revision 2: published by Valerio
- Revision 4: published
- Revision 5: published
0 comments