HTML Preparation code:
Tests:
  • Using the spread operator

  • Using Object.assign

  • Using lodash.clone

Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results
  • Test case name Result
    Using the spread operator
    Using Object.assign
    Using lodash.clone

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 4 years ago)
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Ubuntu Chromium/83.0.4103.97 Chrome/83.0.4103.97 Safari/537.36
Chromium 83 on Ubuntu
View result in a separate tab
Test name Executions per second
Using the spread operator 71989656.0 Ops/sec
Using Object.assign 8307345.0 Ops/sec
Using lodash.clone 1992660.5 Ops/sec