Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/103.0.0.0 Safari/537.36
Chrome 103
Windows
Desktop
2 years ago
Test name Executions per second
localeCompare 118.0 Ops/sec
lodash order 93.7 Ops/sec
sort comparator 192.4 Ops/sec
local compare with language code 68.8 Ops/sec
compare with collator 367.2 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • localeCompare

  • lodash order

  • sort comparator

  • local compare with language code

  • compare with collator