function expression or declaration (v7)

Revision 7 of this benchmark created by DontShootMe on


Description

Testing if function expressions produce more garbage.

Test runner

Ready to run.

Testing in
TestOps/sec
function expression
var a = function() {
    return "do something";
};
var test = function() {
    return a
};

test();
ready
function declaration
function a() {
  return "do something";
};
var test = function() {
    return a
};

test();
ready
function declaration expression
var a = function a() {
  return "do something";
};
var test = function() {
    return a
};

test();
ready

Revisions

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