Tests:
  • Number plus string

  • String constructor

  • ToString function

  • Template Literal

Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results
  • Test case name Result
    Number plus string
    String constructor
    ToString function
    Template Literal

    Fastest: N/A

    Slowest: N/A

Get performance results from real users on your website with Request Metrics.
Latest run results:
Run details: (Test run date: 2 years ago)
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/92.0.4515.107 Safari/537.36 Edg/92.0.902.62
Chrome 92 on Mac OS X 10.15.7
View result in a separate tab
Test name Executions per second
Number plus string 4924488.0 Ops/sec
String constructor 2809260.0 Ops/sec
ToString function 4563646.0 Ops/sec
Template Literal 5187864.0 Ops/sec