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: 2 months ago)
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:147.0) Gecko/20100101 Firefox/147.0
Firefox 147 on Mac OS X 10.15
View result in a separate tab
Test name Executions per second
spread ... 22722314.0 Ops/sec
slice() 39743968.0 Ops/sec
splice(0) 22542942.0 Ops/sec
concat() 32977158.0 Ops/sec
JSON.parse(JSON.stringify()) 2681431.2 Ops/sec
Custom function 3413516.5 Ops/sec
Lodash.cloneDeep() 2055885.1 Ops/sec
jQuery.extend(true) 2144566.0 Ops/sec