Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/105.0.0.0 Safari/537.36
Chrome 105
Mac OS X 10.14.5
Desktop
2 years ago
Test name Executions per second
With inline statements 657329152.0 Ops/sec
With min() and max() 2922514.5 Ops/sec
With if statements 639219328.0 Ops/sec
With ternary operator #1 677987584.0 Ops/sec
With ternary operator #2 656724736.0 Ops/sec
Tests:
  • With inline statements

  • With min() and max()

  • With if statements

  • With ternary operator #1

  • With ternary operator #2