Run details:
Mozilla/5.0 (X11; Linux x86_64; rv:132.0) Gecko/20100101 Firefox/132.0
Firefox 132
Linux
Desktop
28 days ago
Test name Executions per second
Intl.Collator.compare (ASCII-only strings) 43.0 Ops/sec
String.prototype.localeCompare (ASCII-only strings) 36.5 Ops/sec
Intl.Collator.compare 28.5 Ops/sec
String.prototype.localeCompare 18.0 Ops/sec
Script Preparation code:
Tests:
  • Intl.Collator.compare (ASCII-only strings)

  • String.prototype.localeCompare (ASCII-only strings)

  • Intl.Collator.compare

  • String.prototype.localeCompare


;