Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:133.0) Gecko/20100101 Firefox/133.0
Firefox 133
Mac OS X 10.15
Desktop
4 days ago
Test name Executions per second
sort 4476587.0 Ops/sec
localcompare 427103.3 Ops/sec
manual compare 2852891.2 Ops/sec
date convert to date + sort a-b (timezone safe) 481481.3 Ops/sec
date convert to timestamp + sort (timezone safe) 467961.4 Ops/sec
Script Preparation code:
Tests:
  • sort

  • localcompare

  • manual compare

  • date convert to date + sort a-b (timezone safe)

  • date convert to timestamp + sort (timezone safe)