function expression or declaration (v2)

Revision 2 of this benchmark created by Matthew on


Test runner

Ready to run.

Testing in
TestOps/sec
function expression
(function () {

  var module = {
    test: function () {
      var one = 1;
    }
  };

  module.test();

}());
ready
function declaration
(function () {

  function test () {
    var one = 1;
  }

  var module = {};
  module.test = test;

  module.test();

}());
ready

Revisions

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