traceur-block-scope

JavaScript performance comparison

Test case created by

Preparation code


      
      <script>
Benchmark.prototype.setup = function() {
  var foo = [1,2,3,4,5,6,7,8,9,10];

};
</script>

Test runner

Warning! For accurate results, please disable Firebug before running the tests. (Why?)

Java applet disabled.

Testing in CCBot 2.0.0 / Other 0.0.0
Test Ops/sec
var
for (var i = 0; i < foo.length; ++i) {
  console.log(foo[i]);
}
pending…
let
try {
      throw undefined;
    } catch ($i) {
      $i = 0;
      for (; $i < foo.length; ++$i) {
        try {
          throw undefined;
        } catch (i) {
          i = $i;
          try {
            console.log(foo[i]);
          } finally {
            $i = i;
          }
        }
      }
    }
pending…

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

Compare results of other browsers

0 Comments