HTML Preparation code:
Script Preparation code:
Tests:
  • Lodash cloneDeep

  • Native map deep slice(turns objects into arrays)

  • Native JSON parse

  • Native map deep slice at 0(turns objects into arrays)

  • Recursive deep clone

  • Map deep clone

Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results
  • Test case name Result
    Lodash cloneDeep
    Native map deep slice(turns objects into arrays)
    Native JSON parse
    Native map deep slice at 0(turns objects into arrays)
    Recursive deep clone
    Map deep clone

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: one year ago)
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/111.0.0.0 Safari/537.36
Chrome 111 on Mac OS X 10.15.7
View result in a separate tab
Test name Executions per second
Lodash cloneDeep 220941.9 Ops/sec
Native map deep slice(turns objects into arrays) 3790152.2 Ops/sec
Native JSON parse 275306.0 Ops/sec
Native map deep slice at 0(turns objects into arrays) 3901174.8 Ops/sec
Recursive deep clone 222878.7 Ops/sec
Map deep clone 251428.6 Ops/sec