Script Preparation code:
Tests:

Historical Performance Data aggregated from 6 community runs

Desktop Results:
Chrome 6 runs
bitClamp
158.6M/s
clamp
157.4M/s
View exact numbers
  • bitClamp: 158,626,768 ops/sec
  • clamp: 157,382,336 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
    clamp
    bitClamp

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 2 days ago)
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/151.0.0.0 Safari/537.36 Edg/151.0.0.0
Chrome 151 on Windows
View result in a separate tab
clamp
277.7M/s
bitClamp
272.4M/s
View exact numbers
Test name Executions per second
clamp 277,683,808 Ops/sec
bitClamp 272,356,768 Ops/sec