Tests:
  • String()

  • .toString()

  • template string

  • concat with string

Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results
  • Test case name Result
    String()
    .toString()
    template string
    concat with 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 years ago)
Mozilla/5.0 (X11; CrOS x86_64 14092.77.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/93.0.4577.107 Safari/537.36
Chrome 93 on Chrome OS 14092.77.0
View result in a separate tab
Test name Executions per second
String() 15198.2 Ops/sec
.toString() 175576.0 Ops/sec
template string 270942.2 Ops/sec
concat with string 272331.6 Ops/sec