Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/135.0.0.0 Safari/537.36
Chrome 135
Windows
Desktop
one month ago
Test name Executions per second
built-in sort (CASE SENSITIVE) 2961.3 Ops/sec
localeCompare base sort 14.1 Ops/sec
toLowerCase simple sort 1063.8 Ops/sec
toLowerCase with manual compare sort 1074.2 Ops/sec
manual ascii compare sort 2044.3 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • built-in sort (CASE SENSITIVE)

  • localeCompare base sort

  • toLowerCase simple sort

  • toLowerCase with manual compare sort

  • manual ascii compare sort