Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36
Chrome 108
Mac OS X 10.15.7
Desktop
2 years ago
Test name Executions per second
localeCompare 154.1 Ops/sec
lodash order 157.4 Ops/sec
sort comparator 313.1 Ops/sec
local compare with language code 120.4 Ops/sec
compare with collator 535.4 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • localeCompare

  • lodash order

  • sort comparator

  • local compare with language code

  • compare with collator