named or anonymous functions (v9)

Revision 9 of this benchmark created on


Test runner

Ready to run.

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

  var someVariable = someParam;
  return someVariable;
};
var c = 0;
for( var i=0;i<100000;i++);someFunction();
someFunction();
ready
named
function someFunction(someParam) {
  'use strict';

  var someVariable = someParam;
  return someVariable;
};
var c = 0;
for( var i=0;i<100000;i++);someFunction();
someFunction();
ready
named 2
var someFunction = function Test(someParam) {
  'use strict';

  var someVariable = someParam;
  return someVariable;
};
var c = 0;
for( var i=0;i<100000;i++)someFunction();
someFunction();
ready

Revisions

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