Join vs Implode

Benchmark created on


Preparation HTML

<script src="https://ajax.googleapis.com/ajax/libs/mootools/1.2.4/mootools-yui-compressed.js"></script>
<script src="https://fun.amadeusamade.us/implode/implode.js"></script>
<script>
  var bigArray = [];
  var x = 0
  
  while (x < 1024) {
   bigArray[x] = x;
   x++;
  };
</script>

Test runner

Ready to run.

Testing in
TestOps/sec
.join
bigArray.join(';');
ready
.toString
bigArray.toString();
ready
.implode
bigArray.implode(';');
ready

Revisions

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