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
find index lodash n = 1000 149515.8 Ops/sec
find index lodash n = 10000 15549.0 Ops/sec
find index lodash n = 100000 2794.9 Ops/sec
find index lodash n = 1000000 199.8 Ops/sec
find index lodash n = 10000000 78.5 Ops/sec
find index js n = 1000 2402206.2 Ops/sec
find index js n = 10000 80592.2 Ops/sec
find index js n = 100000 75401.3 Ops/sec
find index js n = 1000000 5265.6 Ops/sec
find index js n = 10000000 1789.1 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • find index lodash n = 1000

  • find index lodash n = 10000

  • find index lodash n = 100000

  • find index lodash n = 1000000

  • find index lodash n = 10000000

  • find index js n = 1000

  • find index js n = 10000

  • find index js n = 100000

  • find index js n = 1000000

  • find index js n = 10000000