Script Preparation code:
Tests:

Historical Performance Data aggregated from 214 community runs

Desktop Results:
Chrome 169 runs
string-interpolation
25.2M/s
toSstring
24.5M/s
View exact numbers
  • string-interpolation: 25,225,968 ops/sec
  • toSstring: 24,518,892 ops/sec
Firefox 34 runs
toSstring
1361.4M/s
string-interpolation
234.9M/s

Fastest: toSstring (5.8x faster)

View exact numbers
  • toSstring: 1,361,440,512 ops/sec
  • string-interpolation: 234,876,704 ops/sec
Safari 6 runs
toSstring
30.9M/s
string-interpolation
30.4M/s
View exact numbers
  • toSstring: 30,871,712 ops/sec
  • string-interpolation: 30,404,140 ops/sec
Other 5 runs
string-interpolation
35.0M/s
toSstring
33.8M/s
View exact numbers
  • string-interpolation: 34,990,740 ops/sec
  • toSstring: 33,845,032 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
    string-interpolation
    toSstring

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 6 days ago)
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/146.0.0.0 Safari/537.36 OPR/130.0.0.0
Opera 130 on Windows
View result in a separate tab
string-interpolation
206.6M/s
toSstring
158.4M/s
View exact numbers
Test name Executions per second
string-interpolation 206,580,912 Ops/sec
toSstring 158,384,560 Ops/sec