local-global-var

Benchmark created by aaronzh on


Test runner

Ready to run.

Testing in
TestOps/sec
global
var i, str = '';

function global() {
  for (i = 0; i < 100; i++) {
    str += i;
  }
}
ready
local
function local() {
  var i, str = '';
  for (i = 0; i < 100; i++) {
    str += i;
  }
}
ready

Revisions

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