Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.77 Safari/537.36
Chrome 91
Windows
Desktop
3 years ago
Test name Executions per second
sort array JS n = 100 591517.3 Ops/sec
sort array JS n = 1000 70071.9 Ops/sec
sort array JS n = 10000 7525.6 Ops/sec
sort array JS n = 50000 1332.3 Ops/sec
sort array lodash n = 100 184573.3 Ops/sec
sort array lodash n = 1000 20540.6 Ops/sec
sort array lodash n = 10000 1991.4 Ops/sec
sort array lodash n = 50000 340.1 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • sort array JS n = 100

  • sort array JS n = 1000

  • sort array JS n = 10000

  • sort array JS n = 50000

  • sort array lodash n = 100

  • sort array lodash n = 1000

  • sort array lodash n = 10000

  • sort array lodash n = 50000