Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:143.0) Gecko/20100101 Firefox/143.0
Firefox 143
Windows
Desktop
7 months ago
Test name Executions per second
localeCompare base 72504.5 Ops/sec
localeCompare sensitive 683.2 Ops/sec
Intl.Collator base 62310.5 Ops/sec
Intl.Collator sensitive 62558.9 Ops/sec
sort comparator with casing 65907.7 Ops/sec
sort comparator with custom heuristic 196827.0 Ops/sec
sort comparator 335803.4 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