Run details:
Mozilla/5.0 (iPhone; CPU iPhone OS 15_4_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.4 Mobile/15E148 Safari/604.1
Mobile Safari 15
iOS 15.4.1
Mobile
2 years ago
Test name Executions per second
sort object with orderBy, ascending 787624.9 Ops/sec
sort object with sortBy, ascending 717847.1 Ops/sec
sort object with native sort, ascending 2809478.8 Ops/sec
sort object with orderBy, descending 779555.9 Ops/sec
sort object with native sort, descending 3875193.2 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