string concatenation-test

Benchmark created by asdf on


Test runner

Ready to run.

Testing in
TestOps/sec
using +=
var str = '';
for (var i = 0; i < 10000; i++) {
 str += 'a';
}
ready
using array.join
var str = '';
var arr = [];
for (var i = 0; i < 10000; i++) {
 arr.push('a');
}
arr.join('');
ready

Revisions

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