Script Preparation code:
Tests:
  • Early Return

  • Compute Offset in Array

  • Math Min and Max Functions

  • Ternary Operators

  • If...else

  • Pure Arithmetic

Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results
  • Test case name Result
    Early Return
    Compute Offset in Array
    Math Min and Max Functions
    Ternary Operators
    If...else
    Pure Arithmetic

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: one month ago)
Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/129.0.0.0 Mobile Safari/537.36
Chrome Mobile 129 on Android
View result in a separate tab
Test name Executions per second
Early Return 4139.7 Ops/sec
Compute Offset in Array 3476.1 Ops/sec
Math Min and Max Functions 1815.0 Ops/sec
Ternary Operators 3875.5 Ops/sec
If...else 3653.4 Ops/sec
Pure Arithmetic 3730.5 Ops/sec


;