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 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.0.0 Safari/537.36
Chrome 130 on Mac OS X 10.15.7
View result in a separate tab
Test name Executions per second
Early Return 5925.2 Ops/sec
Compute Offset in Array 5953.0 Ops/sec
Math Min and Max Functions 5810.5 Ops/sec
Ternary Operators 5836.9 Ops/sec
If...else 5964.2 Ops/sec
Pure Arithmetic 5862.9 Ops/sec