Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/113.0
Firefox 113
Windows
Desktop
one year ago
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
Script Preparation code:
Tests:
  • branching if

  • lodash

  • Branchless multiply

  • Ternary clamp

  • min max clamp


;