Script Preparation code:
Tests:
  • Math.Min

  • Math.Max

  • Reduce for min

  • Reduce for max

  • For for min

  • For for max

  • For of for min

  • For of for max

Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results
  • Test case name Result
    Math.Min
    Math.Max
    Reduce for min
    Reduce for max
    For for min
    For for max
    For of for min
    For of for max

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 2 years ago)
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/103.0.0.0 Safari/537.36
Chrome 103 on Windows
View result in a separate tab
Test name Executions per second
Math.Min 664.6 Ops/sec
Math.Max 725.1 Ops/sec
Reduce for min 1076.4 Ops/sec
Reduce for max 944.9 Ops/sec
For for min 51.2 Ops/sec
For for max 56.9 Ops/sec
For of for min 2822.6 Ops/sec
For of for max 2310.3 Ops/sec


;