new array vs literal
JavaScript performance comparison
Test runner
Warning! For accurate results, please disable Firebug before running the tests. (Why?)
Java applet disabled.
| Test | Ops/sec | |
|---|---|---|
new Array(length) |
|
pending… |
new Array() |
|
pending… |
array literal w/length |
|
pending… |
array literal |
|
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 Christopher McCulloh
- Revision 2: published by Krystian
- Revision 3: published by herby
- Revision 5: published by Ghislain
- Revision 6: published by Thomas Aylott
- Revision 7: published by Don
- Revision 8: published by Robert Ferentz
- Revision 9: published by Robert Ferentz
- Revision 10: published
- Revision 11: published by gfdsd
- Revision 13: published by fcanache
- Revision 15: published by Parris
0 comments