Tests:
  • test1

    AخA
     
    const array = [423, 654, 123, 765, 436, 142, 976, 413];
    const test = array.sort((a, b) => a-b).reverse();
  • test2

     
    const array = [423, 654, 123, 765, 436, 142, 976, 413];
    const test = array.sort((a,b) => b-a);
Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results

Experimental features:

  • Test case name Result
    test1
    test2

    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) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/123.0.0.0 Safari/537.36
Chrome 123 on Windows
View result in a separate tab
Test name Executions per second
test1 3416042.2 Ops/sec
test2 3516341.8 Ops/sec