HTML Preparation code:
Script Preparation code:
Tests:
  • Lodash map then max

  • Lodash map/max fusion

  • Lodash sort then last

  • Lodash map/max fusion with closure

  • Lodash maxBy

  • Lodash map then max with closure

Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results
  • Test case name Result
    Lodash map then max
    Lodash map/max fusion
    Lodash sort then last
    Lodash map/max fusion with closure
    Lodash maxBy
    Lodash map then max with closure

    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/107.0.0.0 Safari/537.36
Chrome 107 on Mac OS X 10.15.7
View result in a separate tab
Test name Executions per second
Lodash map then max 161.7 Ops/sec
Lodash map/max fusion 161.5 Ops/sec
Lodash sort then last 13.7 Ops/sec
Lodash map/max fusion with closure 91.7 Ops/sec
Lodash maxBy 130.9 Ops/sec
Lodash map then max with closure 72.4 Ops/sec