strconvatvsjoin

Benchmark created on


Preparation HTML

<script>
  var a = "";
  
  var arr = [];
  
  for (i = 0; i < 100; i++) {    
      arr[i] = "a";
  }
</script>

Test runner

Ready to run.

Testing in
TestOps/sec
strconcant
for (i = 0; i < 100; i++) {
    a = a + arr[i];
}
ready
join
a = arr.join("");
ready

Revisions

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