function expression or declaration (v10)

Revision 10 of this benchmark created 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
Anonymous
var a = function() {
    return "do something";
};
(function() {
    return a
})();
 
ready

Revisions

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