Script Preparation code:
AخA
 
var massiveArray = new Array(100000).fill().map(e => Math.random())
Tests:
  • Math.min

     
    Math.min(...massiveArray)
  • Array.sort[0]

     
    massiveArray.sort()[0]
Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results

Experimental features:

  • Test case name Result
    Math.min
    Array.sort[0]

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: one month ago)
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:135.0) Gecko/20100101 Firefox/135.0
Firefox 135 on Windows
View result in a separate tab
Test name Executions per second
Math.min 1454.0 Ops/sec
Array.sort[0] 60.1 Ops/sec