Script Preparation code:
Tests:

Historical Performance Data aggregated from 29 community runs

Desktop Results:
Chrome 29 runs
String concat
1K/s
JSON.stringify
555/s

Fastest: String concat (2.0x faster)

View exact numbers
  • String concat: 1,116 ops/sec
  • JSON.stringify: 555 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
    JSON.stringify
    String concat

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: one year ago)
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/137.0.0.0 Safari/537.36
Chrome 137 on Mac OS X 10.15.7
View result in a separate tab
String concat
5K/s
JSON.stringify
1K/s
View exact numbers
Test name Executions per second
String concat 4,865 Ops/sec
JSON.stringify 1,356 Ops/sec