Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/118.0.0.0 Safari/537.36
Chrome 118
Mac OS X 10.15.7
Desktop
one year ago
Test name Executions per second
localeCompare 339.9 Ops/sec
lodash order 63.8 Ops/sec
sort comparator 165.8 Ops/sec
local compare with language code 73.7 Ops/sec
compare with collator 289.4 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • localeCompare

  • lodash order

  • sort comparator

  • local compare with language code

  • compare with collator