HTML Preparation code:
Tests:
  • native approach with reduce

  • native approach fromEntries

  • lodash mapValues

  • myFOR

  • myFOR2

Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results
  • Test case name Result
    native approach with reduce
    native approach fromEntries
    lodash mapValues
    myFOR
    myFOR2

    Fastest: N/A

    Slowest: N/A

Get performance results from real users on your website with Request Metrics.
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/105.0.0.0 Safari/537.36
Chrome 105 on Mac OS X 10.15.7
View result in a separate tab
Test name Executions per second
native approach with reduce 390631.8 Ops/sec
native approach fromEntries 349463.9 Ops/sec
lodash mapValues 359369.3 Ops/sec
myFOR 329694.0 Ops/sec
myFOR2 321015.2 Ops/sec