HTML Preparation code:
AخA
 
1
<script src="https://code.jquery.com/jquery-3.6.0.min.js"></script>
Tests:
  • jQuery.extend

     
    const arr1 = [ true, 1, "true", [], {}, function () {} ];
    const arr2 = $.extend(arr1);
  • JSON.stringify

     
    const arr1 = [ true, 1, "true", [], {}, function () {} ];
    const arr2 = JSON.parse(JSON.stringify(arr1));
Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results

Experimental features:

  • Test case name Result
    jQuery.extend
    JSON.stringify

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 2 months ago)
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/132.0.0.0 Safari/537.36
Chrome 132 on Windows
View result in a separate tab
Test name Executions per second
jQuery.extend 3856981.2 Ops/sec
JSON.stringify 3172130.2 Ops/sec