join/concat (v20)

Revision 20 of this benchmark created on


Test runner

Ready to run.

Testing in
TestOps/sec
concat
var res = '',
    count = 10000;
while (count--) {
 res += '<div>';
 res += '<div>';
 res += '<div>';
 res += 'dddddddddddd';
 res += '</div>';
 res += '</div>';
 res += '</div>';
}
var c = document.createElement('div');
c.innerHTML = res;
document.body.appenChild(c);
ready
join
var res = [],
    count = 10000;
while (count--) {
 res.push('<div>')
 res.push('<div>')
 res.push('<div>')
 res.push('dddddddddddd')
 res.push('</div>')
 res.push('</div>')
 res.push('</div>')
}
var c = document.createElement('div');
c.innerHTML = res.join('');
document.body.appenChild(c);
ready

Revisions

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