Script Preparation code:
Tests:

Historical Performance Data aggregated from 5 community runs

Desktop Results:
Chrome 5 runs
recursive for-loop
13.7M/s
JSON.stringify
463K/s

Fastest: recursive for-loop (29.7x faster)

View exact numbers
  • recursive for-loop: 13,740,472 ops/sec
  • JSON.stringify: 462,941 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
    recursive for-loop

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 7 months ago)
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/85.0.4183.127 Safari/537.36 OPR/60.3.3004.55692
Opera 60 on Linux
View result in a separate tab
recursive for-loop
293K/s
JSON.stringify
12K/s
View exact numbers
Test name Executions per second
recursive for-loop 292,508 Ops/sec
JSON.stringify 11,743 Ops/sec