fn-expression-vs-statement (v3)

Revision 3 of this benchmark created on


Test runner

Ready to run.

Testing in
TestOps/sec
Expression
var i;
for (i = 0; i < 100; ++i) {

 var fn = function() {
  // Some code
 }

}
ready
Statement
var i;
for (i = 0; i < 100; ++i) {

 function fn() {
  // Some code
 }
}
ready

Revisions

You can edit these tests or add more tests to this page by appending /edit to the URL.