string concat vs array join (v73)

Revision 73 of this benchmark created by L3P3 on


Setup

var array='aoisd142gjklgalks336djbglaiuebl36igu36abligu7l8aaoisd142gjklgalks336djbglaiueblf36igu36abligu7l8a'.split('');
  
  var substr=String.prototype.substr;

Test runner

Ready to run.

Testing in
TestOps/sec
concat
var string='';
for(var i=0,l=array.length;i<l;i++)string+=array[i];
ready
join('')
var string=array.join('');
ready
join
var string=array.join();
ready
substr.call
var string=substr.call(array,0);
ready

Revisions

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