Script Preparation code:
AخA
 
var a=Array.from({length:100},()=>Math.random())
Tests:
  • sort

     
    a.sort();
  • reduce

     
    a.reduce((a,c) => a < c ? a : c)
Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results

Experimental features:

  • Test case name Result
    sort
    reduce

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 5 years ago)
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36
Chrome 77 on Windows
View result in a separate tab
Test name Executions per second
sort 47337.7 Ops/sec
reduce 1357228.8 Ops/sec