Script Preparation code:
Tests:
Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results
  • Test case name Result
    Math.max.apply
    Math.max with spread
    basic for loop
    for loop length caching

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: one year ago)
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:138.0) Gecko/20100101 Firefox/138.0
Firefox 138 on Windows
View result in a separate tab
basic for loop
641K/s
for loop length caching
631K/s
Math.max with spread
35K/s
Math.max.apply
35K/s
View exact numbers
Test name Executions per second
basic for loop 641,387 Ops/sec
for loop length caching 630,776 Ops/sec
Math.max with spread 34,956 Ops/sec
Math.max.apply 34,893 Ops/sec