join/concat

Benchmark created by Stoyan on


Test runner

Ready to run.

Testing in
TestOps/sec
concat
var res = '',
    count = 10000;
while (count--) {
 res += 'a';
}
ready
join
var res = [],
    count = 10000;
while (count--) {
 res.push('a');
}
res = res.join('');
ready

Revisions

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