Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.198 Safari/537.36 Edg/86.0.622.69
Chrome 86
Windows
Desktop
3 years ago
Test name Executions per second
$.grep 1345727.0 Ops/sec
array.find 451504.8 Ops/sec
array.where 2145778.0 Ops/sec
angular.$filter 1029627.0 Ops/sec
array.filter 568239.3 Ops/sec
lodash.filter 1461279.0 Ops/sec
underscore.filter 1374614.0 Ops/sec
grepAlone 1306792.0 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • $.grep

  • array.find

  • array.where

  • angular.$filter

  • array.filter

  • lodash.filter

  • underscore.filter

  • grepAlone