Script Preparation code:
Tests:
  • Math.max/min

  • if

  • ternary

  • bitwise

  • & ~~

Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results
  • Test case name Result
    Math.max/min
    if
    ternary
    bitwise
    & ~~

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: one month ago)
Mozilla/5.0 (iPhone; CPU iPhone OS 18_7 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/18.7.2 Mobile/15E148 Safari/604.1
Mobile Safari 18 on iOS 18.7
View result in a separate tab
Test name Executions per second
Math.max/min 83176136.0 Ops/sec
if 217075328.0 Ops/sec
ternary 223229552.0 Ops/sec
bitwise 227199088.0 Ops/sec
& ~~ 213354176.0 Ops/sec