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
Rendered benchmark preparation results:
Latest run results:
Run details: (Test run date:
one year ago )
User agent:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/133.0.0.0 Safari/537.36
Browser/OS:
Chrome 133 on Mac OS X 10.15.7
View result in a separate tab
Embed
sort object with native sort, descending
8.8M/s
sort object with native sort, ascending
4.8M/s
sort object with orderBy, descending
1.8M/s
sort object with orderBy, ascending
1.7M/s
sort object with sortBy, ascending
1.7M/s
View exact numbers
Test name
Executions per second
✓
sort object with native sort, descending
8,768,320 Ops/sec
sort object with native sort, ascending
4,753,738 Ops/sec
sort object with orderBy, descending
1,820,521 Ops/sec
sort object with orderBy, ascending
1,732,440 Ops/sec
sort object with sortBy, ascending
1,708,427 Ops/sec
Do you really want to delete benchmark?