Run details:
Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/68.0.3440.106 Safari/537.36
Chrome 68
Windows 7
Desktop
5 years ago
Test name Executions per second
Native find 2145206.0 Ops/sec
Lodash find 268881.1 Ops/sec
Lodash some 217717.0 Ops/sec
Native some 951898.7 Ops/sec
Native find index 1391431.0 Ops/sec
Complex 367935.1 Ops/sec
Lodash find index 398293.5 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • Native find

  • Lodash find

  • Lodash some

  • Native some

  • Native find index

  • Complex

  • Lodash find index