AA1

Benchmark created on


Test runner

Ready to run.

Testing in
TestOps/sec
1
const touchedProjects = ['aaa', 'bbb', 'ccc', 'ddd', 'eee', 'fff', 'ggg', 'hhh', 'iii', 'jjj']

let concatProjects = '';
for (const proj of touchedProjects) {
  concatProjects += proj + ' ';
}
ready
2
const touchedProjects = ['aaa', 'bbb', 'ccc', 'ddd', 'eee', 'fff', 'ggg', 'hhh', 'iii', 'jjj']

const projects = touchedProjects.join(' ')
ready
3
const touchedProjects = ['aaa', 'bbb', 'ccc', 'ddd', 'eee', 'fff', 'ggg', 'hhh', 'iii', 'jjj']

let concatProjects = '';
for (var i=0;i<touchedProjects.length-1;i++) {
  concatProjects += touchedProjects[i] + ' ';
}
ready

Revisions

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