local-global-var (v2)

Revision 2 of this benchmark created on


Test runner

Ready to run.

Testing in
TestOps/sec
global
var g1; var gstr1= '';
function global() {
  for (g1 = 0; g1 < 10000; g1++) {
    gstr1 += g1;
  }
}
ready
local
function local() {
  var l1, lstr1 = '';
  for (l1 = 0; l1 < 10000; l1++) {
    lstr1 += l1;
  }
}
ready

Revisions

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