Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.105 Safari/537.36
Chrome 84
Mac OS X 10.15.6
Desktop
4 years ago
Test name Executions per second
$.grep 1236300.0 Ops/sec
array.find 513776.8 Ops/sec
array.where 2000928.1 Ops/sec
angular.$filter 708735.6 Ops/sec
array.filter 465871.1 Ops/sec
lodash.filter 1257163.9 Ops/sec
underscore.filter 1186892.2 Ops/sec
grepAlone 1306141.0 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • $.grep

  • array.find

  • array.where

  • angular.$filter

  • array.filter

  • lodash.filter

  • underscore.filter

  • grepAlone


;