Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/93.0.4577.63 Safari/537.36
Chrome 93
Mac OS X 10.15.7
Desktop
3 years ago
Test name Executions per second
sort object with orderBy, ascending 478407.3 Ops/sec
sort object with sortBy, ascending 419226.3 Ops/sec
sort object with native sort, ascending 1289376.6 Ops/sec
sort object with orderBy, descending 487621.1 Ops/sec
sort object with native sort, descending 2051462.4 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • sort object with orderBy, ascending

  • sort object with sortBy, ascending

  • sort object with native sort, ascending

  • sort object with orderBy, descending

  • sort object with native sort, descending