HTML Preparation code:
Tests:

Historical Performance Data aggregated from 7 community runs

Desktop Results:
Chrome 7 runs
Lodash clamp
12.0M/s
Manual Math.min Math.max
7.7M/s

Fastest: Lodash clamp (1.6x faster)

View exact numbers
  • Lodash clamp: 11,995,532 ops/sec
  • Manual Math.min Math.max: 7,698,896 ops/sec

Results show median performance across all community submissions. Run this benchmark yourself to verify on your device.

Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results
  • Test case name Result
    Lodash clamp
    Manual Math.min Math.max

    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/136.0.0.0 Safari/537.36
Chrome 136 on Mac OS X 10.15.7
View result in a separate tab
Manual Math.min Math.max
232.2M/s
Lodash clamp
69.5M/s
View exact numbers
Test name Executions per second
Manual Math.min Math.max 232,166,512 Ops/sec
Lodash clamp 69,537,616 Ops/sec