Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Safari/537.36
Chrome 122
Windows
Desktop
8 months ago
Test name Executions per second
Native JS sort 46713.2 Ops/sec
lodash sortby 13764.3 Ops/sec
lodash orderBy 12109.6 Ops/sec
lodash orderby 2 properties 1923.1 Ops/sec
lodash orderby 3 properties 1657.4 Ops/sec
lodash oderby 4 properties 1495.7 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • Native JS sort

  • lodash sortby

  • lodash orderBy

  • lodash orderby 2 properties

  • lodash orderby 3 properties

  • lodash oderby 4 properties