Run details:
Mozilla/5.0 (Linux; Android 12; SM-A125F) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Mobile Safari/537.36
Chrome Mobile 109
Android
Mobile
one year ago
Test name Executions per second
localeCompare 21950.5 Ops/sec
Intl.Collator().compare 19621.3 Ops/sec
collator.compare 280804.5 Ops/sec
Script Preparation code:
Tests:
  • localeCompare

  • Intl.Collator().compare

  • collator.compare