Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Firefox/91.0
Firefox 91
Windows
Desktop
3 years ago
Test name Executions per second
sort object with orderBy, ascending 133016.1 Ops/sec
sort object with sortBy, ascending 161815.1 Ops/sec
sort object with native sort, ascending 445102.7 Ops/sec
sort object with orderBy, descending 116834.0 Ops/sec
sort object with native sort, descending 767854.7 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