String concat versus array join (v2)

Revision 2 of this benchmark created by Kasper Ligaard on


Preparation HTML

<script>
  var box = '/mjallo/hallo';
</script>

Test runner

Ready to run.

Testing in
TestOps/sec
String concat
var a = ['SELECT "' + box + '"'];
ready
Join
var b = [['SELECT "', box, '"'].join('')];
ready

Revisions

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

  • Revision 2: published by Kasper Ligaard on