104chrome (v2)

Revision 2 of this benchmark created on


Test runner

Ready to run.

Testing in
TestOps/sec
es5
var data = [1,2,3,4,5,6,7,8,9,10];

function fn() {
  var ret = '';
  for (var i = 0; i < data.length; i++) {
    ret += data[i];
  }
  return ret;
}
fn()
ready
es6
var data = [1,2,3,4,5,6,7,8,9,10];

function fn() {
  var ret = '';
  for (var value of data) {
    ret += value;
  }
  return ret;
}
fn()
ready

Revisions

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