HTML Preparation code:
Tests:

Historical Performance Data aggregated from 10 community runs

Desktop Results:
Chrome 10 runs
jQuery.extend
3.2M/s
JSON.stringify
2.3M/s

Fastest: jQuery.extend (1.4x faster)

View exact numbers
  • jQuery.extend: 3,197,944 ops/sec
  • JSON.stringify: 2,304,888 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
    jQuery.extend
    JSON.stringify

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 10 months ago)
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:145.0) Gecko/20100101 Firefox/145.0
Firefox 145 on Windows
View result in a separate tab
jQuery.extend
3.6M/s
JSON.stringify
2.9M/s
View exact numbers
Test name Executions per second
jQuery.extend 3,647,807 Ops/sec
JSON.stringify 2,880,552 Ops/sec