string concat vs. join22

JavaScript performance comparison

Test case created by emste

Test runner

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

Java applet disabled.

Testing in unknown unknown
Test Ops/sec
string concat
var s = ""+
"a"+
"sad"+
"fsd"+
"sdf"+
"fd"+
"dh"+
"ewr"+
"ewr"+
"wer"+
"ewr"+
"ewr"+
"ewr"+
"ewr"+
""+
"ewr";
pending…
join
var s = [
 'sdfsfd',
 'sdfsfd',
 'sdfsfd',
 'sdfsd',
 'sdfsdf',
 'sdfsd',
 'sdfsdf',
 'sdfsdf',
 'sdfsdf',
 'sdfsfd',
 'sdf',
'dsf',
'',
'sdf',
'sdf'
].join('');
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