For concat

Benchmark created by Renato Rodrigues on


Test runner

Ready to run.

Testing in
TestOps/sec
concat
var s = '';
for (i=100;i>=0;i--){
    s+=i;
}
console.log(s);
 
ready
join
var s = [];
for (i=100;i>=0;i--){
    s.push(i.toString());
}
console.log(s.join(''));
ready
join plus
var s = [];
for (i=0;i>=100;i++){
    s.push(i.toString());
}
console.log(s.join(''));
ready

Revisions

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

  • Revision 1: published by Renato Rodrigues on