Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/14.1.2 Safari/605.1.15
Safari 14
Mac OS X 10.15.7
Desktop
3 years ago
Test name Executions per second
$.grep 1758797.5 Ops/sec
array.find 2277931.5 Ops/sec
array.where 2135676.8 Ops/sec
angular.$filter 709332.8 Ops/sec
array.filter 1568177.6 Ops/sec
lodash.filter 1777692.6 Ops/sec
underscore.filter 1370294.9 Ops/sec
grepAlone 1635220.1 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • $.grep

  • array.find

  • array.where

  • angular.$filter

  • array.filter

  • lodash.filter

  • underscore.filter

  • grepAlone


;