Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4692.99 Safari/537.36
Chrome 97
Mac OS X 10.15.7
Desktop
2 years ago
Test name Executions per second
$.grep 2522439.5 Ops/sec
array.find 998522.4 Ops/sec
array.where 3803505.8 Ops/sec
angular.$filter 1649260.5 Ops/sec
array.filter 1056630.6 Ops/sec
lodash.filter 945246.4 Ops/sec
underscore.filter 1124274.0 Ops/sec
grepAlone 2610896.5 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • $.grep

  • array.find

  • array.where

  • angular.$filter

  • array.filter

  • lodash.filter

  • underscore.filter

  • grepAlone


;