named or anonymous functions

Benchmark created by Stephen Mathieson on


Test runner

Ready to run.

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

  var someVariable = someParam;
  return someVariable;
};

someFunction(true);
ready
named
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.