Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.0.0 Safari/537.36
Chrome 102
Mac OS X 10.15.7
Desktop
2 years ago
Test name Executions per second
$.grep 1554162.8 Ops/sec
array.find 651705.8 Ops/sec
array.where 2895875.0 Ops/sec
angular.$filter 1030613.6 Ops/sec
array.filter 712009.0 Ops/sec
lodash.filter 540289.0 Ops/sec
underscore.filter 775368.9 Ops/sec
grepAlone 1881263.6 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • $.grep

  • array.find

  • array.where

  • angular.$filter

  • array.filter

  • lodash.filter

  • underscore.filter

  • grepAlone


;