Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.88 Safari/537.36 Edg/87.0.664.66
Chrome 87
Mac OS X 10.15.7
Desktop
3 years ago
Test name Executions per second
$.grep 1571956.4 Ops/sec
array.find 475951.1 Ops/sec
array.where 2422129.0 Ops/sec
angular.$filter 1138629.6 Ops/sec
array.filter 589246.1 Ops/sec
lodash.filter 1628743.2 Ops/sec
underscore.filter 1722488.5 Ops/sec
grepAlone 1808991.0 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • $.grep

  • array.find

  • array.where

  • angular.$filter

  • array.filter

  • lodash.filter

  • underscore.filter

  • grepAlone


;