perf (v2)

Revision 2 of this benchmark created on


Test runner

Ready to run.

Testing in
TestOps/sec
outer declaration
(function outerMain() {
  var x = "Some string";

  function outerIN() {
    console.log(x);
  }
  for (var i = 0; i < 1000; i++) {
    outerIN();
  }
})();
ready
inner declaration
(function innerMain() {
  function innerIN() {
    var x = "Some string";
    console.log(x);
  }
  for (var i = 0; i < 1000; i++) {
    innerIN();
  }
})();
ready

Revisions

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