Run details:
Mozilla/5.0 (Linux; Android 9; SM-G975F) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.5005.78 Mobile Safari/537.36
Chrome Mobile 102
Android
Mobile
2 years ago
Test name Executions per second
localeCompare() 69483.1 Ops/sec
Intl.Collator.compare() 1277911.5 Ops/sec
Script Preparation code:
Tests:
  • localeCompare()

  • Intl.Collator.compare()