toString vs concat

Benchmark created on


Preparation HTML

<script>
  var number = 123456789;
</script>

Test runner

Ready to run.

Testing in
TestOps/sec
tostring
number.toString();
ready
plus quotes
number + '';
ready

Revisions

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