Script Preparation code:
Tests:

Historical Performance Data aggregated from 136 community runs

Desktop Results:
Chrome 130 runs
template literal
129.8M/s
string literal concat
115.6M/s
toString
111.4M/s
String()
17.0M/s

Fastest: template literal (7.6x faster)

View exact numbers
  • template literal: 129,812,960 ops/sec
  • string literal concat: 115,623,984 ops/sec
  • toString: 111,449,120 ops/sec
  • String(): 17,032,948 ops/sec
Safari 6 runs
string literal concat
610.5M/s
toString
589.5M/s
template literal
574.4M/s
String()
25.9M/s

Fastest: string literal concat (23.6x faster)

View exact numbers
  • string literal concat: 610,532,224 ops/sec
  • toString: 589,514,368 ops/sec
  • template literal: 574,362,368 ops/sec
  • String(): 25,898,092 ops/sec

Results show median performance across all community submissions. Run this benchmark yourself to verify on your device.

Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results
  • Test case name Result
    toString
    template literal
    string literal concat
    String()

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 6 months ago)
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/144.0.0.0 Safari/537.36
Chrome 144 on Windows
View result in a separate tab
template literal
90.6M/s
string literal concat
73.5M/s
toString
67.7M/s
String()
63.8M/s
View exact numbers
Test name Executions per second
template literal 90,569,592 Ops/sec
string literal concat 73,495,176 Ops/sec
toString 67,659,368 Ops/sec
String() 63,810,972 Ops/sec