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 1345726.6 Ops/sec
array.find 451504.8 Ops/sec
array.where 2145777.8 Ops/sec
angular.$filter 1029626.8 Ops/sec
array.filter 568239.3 Ops/sec
lodash.filter 1461278.8 Ops/sec
underscore.filter 1374613.6 Ops/sec
grepAlone 1306791.5 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • $.grep

  • array.find

  • array.where

  • angular.$filter

  • array.filter

  • lodash.filter

  • underscore.filter

  • grepAlone


;