Coffee ForIn vs Vanilla JS

JavaScript performance comparison

Test case created

Info

Test the speed difference between the two

Test runner

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

Java applet disabled.

Testing in unknown unknown
Test Ops/sec
Coffee For-in
var a, arr, _i, _len;

arr = [11, 23, 123, 232, 12];

for (_i = 0, _len = arr.length; _i < _len; _i++) {
  a = arr[_i];
  console.log(a);
}
pending…
Vanilla JS For loop
var arr = [11, 23, 123, 232, 12];

for (var i = 0; i < arr.length; i++) {
  console.log(arr[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

Add a comment