Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4430.212 Safari/537.36
Chrome 90
Windows
Desktop
3 years ago
Test name Executions per second
sort array JS n = 100 176254.7 Ops/sec
sort array JS n = 1000 20515.3 Ops/sec
sort array JS n = 10000 2074.8 Ops/sec
sort array JS n = 50000 385.1 Ops/sec
sort array lodash n = 100 60121.2 Ops/sec
sort array lodash n = 1000 6267.9 Ops/sec
sort array lodash n = 10000 647.0 Ops/sec
sort array lodash n = 50000 107.8 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