Test case name | Result |
---|---|
Lodash clamp | |
Manual Math.min Math.max | |
CLAMP_INT | |
branchClamp |
Test name | Executions per second |
---|---|
Lodash clamp | 4970829.5 Ops/sec |
Manual Math.min Math.max | 2711311.2 Ops/sec |
CLAMP_INT | 7044672.5 Ops/sec |
branchClamp | 7078505.5 Ops/sec |