Script Preparation code:
Tests:
  • branchless

  • Math.min (cached)

  • Math.min (uncached)

  • Min w/ Ternary

  • Min w/ If

Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results
  • Test case name Result
    branchless
    Math.min (cached)
    Math.min (uncached)
    Min w/ Ternary
    Min w/ If

    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
branchless 81803656.0 Ops/sec
Math.min (cached) 90934264.0 Ops/sec
Math.min (uncached) 77834704.0 Ops/sec
Min w/ Ternary 83542584.0 Ops/sec
Min w/ If 74606208.0 Ops/sec