Number to string or using template literal

Benchmark created on


Description

Seems to have a different winner per browser engine

Setup

const num = 500;

Test runner

Ready to run.

Testing in
TestOps/sec
Number to string conversion using template literal
return `${num}`
ready
Number to string conversion using toString()
return num.toString()
ready

Revisions

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