hoisting loops

Benchmark created on


Test runner

Ready to run.

Testing in
TestOps/sec
regular
for (i=0;i<1000;i++){
  var mike = [1,2,3,4];
  var sam = [1,2,3,4];
  var jake = [1,2,3,4];
  var bill = [1,2,3,4];
}
ready
pre-declare
var mike, sam, jake, bill;
for (i=0;i<1000;i++){
  mike = [1,2,3,4];
  sam = [1,2,3,4];
  jake = [1,2,3,4];
  bill = [1,2,3,4];
}
ready

Revisions

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