Script Preparation code:
Tests:
  • Intl.Collator.compare (ASCII-only strings)

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

  • Intl.Collator.compare

  • String.prototype.localeCompare

Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results
  • Test case name Result
    Intl.Collator.compare (ASCII-only strings)
    String.prototype.localeCompare (ASCII-only strings)
    Intl.Collator.compare
    String.prototype.localeCompare

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 28 days ago)
Mozilla/5.0 (X11; Linux x86_64; rv:132.0) Gecko/20100101 Firefox/132.0
Firefox 132 on Linux
View result in a separate tab
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


;