+ vs string.concat

Benchmark created on


Preparation HTML

<script>
  var str = '',
      hello = 'Hello ',
      world = 'World ';
</script>

Test runner

Ready to run.

Testing in
TestOps/sec
add
str = hello + world;
ready
concat
str = "".concat(hello, world);
ready

Revisions

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