Tests:
  • String()

  • .toString()

  • Concatenation

  • Template string

Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results
  • Test case name Result
    String()
    .toString()
    Concatenation
    Template string

    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 months ago)
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:123.0) Gecko/20100101 Firefox/123.0
Firefox 123 on Windows
View result in a separate tab
Test name Executions per second
String() 6489225.0 Ops/sec
.toString() 6590551.0 Ops/sec
Concatenation 6225155.0 Ops/sec
Template string 1339127.0 Ops/sec