Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/17.1.2 Safari/605.1.15
Safari 17
Mac OS X 10.15.7
Desktop
4 days ago
Test name Executions per second
sort 394783.9 Ops/sec
localcompare 470501.7 Ops/sec
manual compare 314725.1 Ops/sec
date convert to date + sort a-b (timezone safe) 56486.5 Ops/sec
date convert to timestamp + sort (timezone safe) 100344.2 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)


;