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: 9 months ago)
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:140.0) Gecko/20100101 Firefox/140.0
Firefox 140 on Mac OS X 10.15
View result in a separate tab
Test name Executions per second
Early Return 107381.5 Ops/sec
Compute Offset in Array 91905.5 Ops/sec
Math Min and Max Functions 44964.4 Ops/sec
Ternary Operators 687134.6 Ops/sec
If...else 683892.3 Ops/sec
Pure Arithmetic 793982.8 Ops/sec