Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:128.0) Gecko/20100101 Firefox/128.0
Firefox 128
Windows
Desktop
4 months ago
Test name Executions per second
Intl.Collator.compare (ASCII-only strings) 271.1 Ops/sec
String.prototype.localeCompare (ASCII-only strings) 206.5 Ops/sec
Intl.Collator.compare 198.5 Ops/sec
String.prototype.localeCompare 152.1 Ops/sec
Script Preparation code:
Tests:
  • Intl.Collator.compare (ASCII-only strings)

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

  • Intl.Collator.compare

  • String.prototype.localeCompare


;