let vs var (v5)

Revision 5 of this benchmark created on


Test runner

Ready to run.

Testing in
TestOps/sec
let
(function() {
  "use strict";
  let lettest = 'foo bar baz';

  for (let i = 0; i < 10; i++) {
    let x = i * i;
  }
})();
ready
var
(function() {
  "use strict";
  var vartest = 'foo bar baz';

  for (var i = 0; i < 10; i++) {
    var x = i * i;
  }
})();
ready

Revisions

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