join/concat (v21)

Revision 21 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.appendChild(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.appendChild(c);
ready

Revisions

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