Script Preparation code:
AخA
 
var string1 = ["lorem", "ipsum", "sim", "dolor", "amet", "sensei", "shaolin", "eight", "nine", "ten"];
var string2 = ["lorem", "ipsum", "sim", "dolor", "amet", "sensei", "shaolin", "eight", "nine", "ten"];
for(let i=0; i<2; i++) string1.push(...string1);
for(let i=0; i<5; i++) string2.push(...string2);
var arr1 = string1;
var arr2 = string2;
Tests:
  • simple sort

     
    arr1.sort()
  • localeCompare sort

     
    arr1.sort((a,b) => a.localeCompare(b))
Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results

Experimental features:

  • Test case name Result
    simple sort
    localeCompare sort

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 6 years ago)
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/72.0.3602.2 Safari/537.36
Chrome 72 on Windows
View result in a separate tab
Test name Executions per second
simple sort 752791.4 Ops/sec
localeCompare sort 282.7 Ops/sec