Script Preparation code:
Tests:

Historical Performance Data aggregated from 17 community runs

Desktop Results:
Chrome 17 runs
JSON.stringify
4.0M/s
JSON.parse
3.1M/s

Fastest: JSON.stringify (1.3x faster)

View exact numbers
  • JSON.stringify: 3,972,739 ops/sec
  • JSON.parse: 3,083,701 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.parse
    JSON.stringify

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: one year ago)
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/138.0.0.0 Safari/537.36
Chrome 138 on Windows
View result in a separate tab
JSON.stringify
7.0M/s
JSON.parse
4.0M/s
View exact numbers
Test name Executions per second
JSON.stringify 6,987,998 Ops/sec
JSON.parse 3,960,093 Ops/sec