Testing String Concatenation

Benchmark created on


Preparation HTML

<script>
  var array = new Array();
  for (var i = 0; i < 1000000000; i++) {
   array[i] = i;
  }
</script>

Test runner

Ready to run.

Testing in
TestOps/sec
+=
var output = "";
for (var x in array) {
 output += x;
}
ready
+
var output = "";
for (var x in array) {
 output = output + x;
}
ready

Revisions

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