Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:145.0) Gecko/20100101 Firefox/145.0
Firefox 145
Windows
Desktop
5 months ago
Test name Executions per second
localeCompare base 1460.0 Ops/sec
localeCompare sensitive 21.4 Ops/sec
Intl.Collator base 1680.9 Ops/sec
Intl.Collator sensitive 1649.3 Ops/sec
sort comparator with casing 908.6 Ops/sec
sort comparator with custom heuristic 4176.9 Ops/sec
sort comparator 6575.0 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • localeCompare base

  • localeCompare sensitive

  • Intl.Collator base

  • Intl.Collator sensitive

  • sort comparator with casing

  • sort comparator with custom heuristic

  • sort comparator