named or anonymous functions (v10)

Revision 10 of this benchmark created by royce on


Test runner

Ready to run.

Testing in
TestOps/sec
function expression
var someFunction = function(someParam) {
  'use strict';

  var someVariable = someParam;
  return someVariable;
};

someFunction(true);
ready
function declaration
function someFunction(someParam) {
  'use strict';

  var someVariable = someParam;
  return someVariable;
};

someFunction(true);
ready

Revisions

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