Tests:
  • With inline statements

  • With min() and max()

  • With if statements

  • With ternary operator #1

  • With ternary operator #2

Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results
  • Test case name Result
    With inline statements
    With min() and max()
    With if statements
    With ternary operator #1
    With ternary operator #2

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 27 days ago)
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:134.0) Gecko/20100101 Firefox/134.0
Firefox 134 on Windows
View result in a separate tab
Test name Executions per second
With inline statements 1139116672.0 Ops/sec
With min() and max() 1140537344.0 Ops/sec
With if statements 1140608384.0 Ops/sec
With ternary operator #1 1201516416.0 Ops/sec
With ternary operator #2 1155996800.0 Ops/sec