local vs global

Benchmark created on


Test runner

Ready to run.

Testing in
TestOps/sec
local
function A() {
 function B() {
  var i = 42;
  var c = i * i;
  return c;
 }
 B();
}
ready
global
function C() {
 D();
}

function D() {
 var i = 42;
 var c = i * i;
 return c;
}
ready

Revisions

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