function expression or declaration
JavaScript performance comparison
Info
Testing if function expressions produce more garbage.
Test runner
Warning! For accurate results, please disable Firebug before running the tests. (Why?)
Java applet disabled.
| Test | Ops/sec | |
|---|---|---|
function expression w/o closure |
|
pending… |
function declaration w/o closure |
|
pending… |
function expression w/ closure |
|
pending… |
function declaration w/ closure |
|
pending… |
named function declaration w/o closure |
|
pending… |
named function declaration w/ closure |
|
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
- Revision 2: published by Matthew
- Revision 3: published
- Revision 4: published by Matthew
- Revision 5: published
- Revision 6: published
- Revision 7: published by DontShootMe
0 comments