Script Preparation code:
Tests:

Historical Performance Data aggregated from 25 community runs

Desktop Results:
Chrome 18 runs
Array.join
1.3M/s
toString
1.2M/s
JSON.stringify
1.2M/s
View exact numbers
  • Array.join: 1,254,685 ops/sec
  • toString: 1,205,235 ops/sec
  • JSON.stringify: 1,172,894 ops/sec
Firefox 7 runs
toString
4.7M/s
Array.join
2.5M/s
JSON.stringify
2.1M/s

Fastest: toString (2.3x faster)

View exact numbers
  • toString: 4,675,918 ops/sec
  • Array.join: 2,544,673 ops/sec
  • JSON.stringify: 2,070,488 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
    JSON.stringify
    Array.join

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: one month ago)
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:152.0) Gecko/20100101 Firefox/152.0
Firefox 152 on Windows
View result in a separate tab
Array.join
2.7M/s
toString
2.3M/s
JSON.stringify
1.1M/s
View exact numbers
Test name Executions per second
Array.join 2,724,909 Ops/sec
toString 2,254,464 Ops/sec
JSON.stringify 1,079,823 Ops/sec