Run details:
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Ubuntu Chromium/2019.04 Iridium/2019.04 Safari/537.36 Chrome/73.0.0.0
Chrome 73
Ubuntu
Desktop
4 years ago
Test name Executions per second
localeCompare 102.9 Ops/sec
lodash order 84.5 Ops/sec
sort comparator 158.0 Ops/sec
local compare with language code 0.3 Ops/sec
compare with collator 163.7 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • localeCompare

  • lodash order

  • sort comparator

  • local compare with language code

  • compare with collator