Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/127.0.0.0 Safari/537.36
Chrome 127
Mac OS X 10.15.7
Desktop
4 months ago
Test name Executions per second
With inline statements 124298032.0 Ops/sec
With min() and max() 4502640.5 Ops/sec
With if statements 90177784.0 Ops/sec
With ternary operator #1 120568472.0 Ops/sec
With ternary operator #2 125487432.0 Ops/sec
Tests:
  • With inline statements

  • With min() and max()

  • With if statements

  • With ternary operator #1

  • With ternary operator #2