HTML Preparation code:
Tests:
  • spread ...

  • slice()

  • splice(0)

  • concat()

  • JSON.parse(JSON.stringify())

  • Custom function

  • Lodash.cloneDeep()

  • jQuery.extend(true)

Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results
  • Test case name Result
    spread ...
    slice()
    splice(0)
    concat()
    JSON.parse(JSON.stringify())
    Custom function
    Lodash.cloneDeep()
    jQuery.extend(true)

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 22 hours ago)
Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Mobile Safari/537.36
Chrome Mobile 131 on Android
View result in a separate tab
Test name Executions per second
spread ... 17743024.0 Ops/sec
slice() 20368260.0 Ops/sec
splice(0) 15528793.0 Ops/sec
concat() 18742884.0 Ops/sec
JSON.parse(JSON.stringify()) 1054763.1 Ops/sec
Custom function 750040.8 Ops/sec
Lodash.cloneDeep() 539612.5 Ops/sec
jQuery.extend(true) 565216.1 Ops/sec


;