Run details:
Mozilla/5.0 (X11; Linux x86_64; rv:125.0) Gecko/20100101 Firefox/125.0
Firefox 125
Linux
Desktop
7 months ago
Test name Executions per second
Intl.Collator.compare (ASCII-only strings) 175.5 Ops/sec
String.prototype.localeCompare (ASCII-only strings) 150.9 Ops/sec
Intl.Collator.compare 146.7 Ops/sec
String.prototype.localeCompare 123.9 Ops/sec
Script Preparation code:
Tests:
  • Intl.Collator.compare (ASCII-only strings)

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

  • Intl.Collator.compare

  • String.prototype.localeCompare


;