Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/126.0.0.0 Safari/537.36
Chrome 126
Mac OS X 10.15.7
Desktop
2 months ago
Test name Executions per second
_.orderBy asc 29.5 Ops/sec
array.prototype.sort asc 180.1 Ops/sec
_.orderBy desc 100.9 Ops/sec
array.prototype.sort desc 217.3 Ops/sec
array.prototype.sort desc + check type 151.0 Ops/sec
array.prototype.sort asc + check type 165.1 Ops/sec
_.orderBy asc st 80.7 Ops/sec
_.orderBy desc st 83.4 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • _.orderBy asc

  • array.prototype.sort asc

  • _.orderBy desc

  • array.prototype.sort desc

  • array.prototype.sort desc + check type

  • array.prototype.sort asc + check type

  • _.orderBy asc st

  • _.orderBy desc st