Test case name | Result |
---|---|
branching if | |
lodash | |
Branchless multiply | |
Ternary clamp | |
min max clamp |
Test name | Executions per second |
---|---|
branching if | 9099643.0 Ops/sec |
lodash | 812850.1 Ops/sec |
Branchless multiply | 7307012.5 Ops/sec |
Ternary clamp | 8204142.5 Ops/sec |
min max clamp | 7151854.5 Ops/sec |