Declaring variables inside loops
JavaScript performance comparison
Info
Tests whether declaring a variable inside a loop, rather than declaring outside and just assigning values, is more performant
Test runner
Warning! For accurate results, please disable Firebug before running the tests. (Why?)
Java applet disabled.
| Test | Ops/sec | |
|---|---|---|
Declare in a loop |
|
pending… |
Declare outside loop |
|
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 Shane O'Sullivan
- Revision 2: published by jordow
- Revision 3: published by Shane O'Sullivan
- Revision 4: published
- Revision 5: published by Ryan Patterson
- Revision 6: published
0 comments