var each vs var once

Benchmark created by zvona on


Test runner

Ready to run.

Testing in
TestOps/sec
var each
(function() {
 var a = 1;
 var b = "1";
 var c = [1];
 var d = {
  "1": "1"
 };
})();
ready
var once
(function() {
 var a = 1,
     b = "1",
     c = [1],
     d = {
   "1": "1"
     };
})();
ready

Revisions

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

  • Revision 1: published by zvona on