Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.2 Safari/605.1.15
Safari 15
Mac OS X 10.15.7
Desktop
2 years ago
Test name Executions per second
$.grep 3543260.5 Ops/sec
array.find 4762182.0 Ops/sec
array.where 4691603.5 Ops/sec
angular.$filter 1343956.6 Ops/sec
array.filter 2474376.2 Ops/sec
lodash.filter 2608684.2 Ops/sec
underscore.filter 2180115.0 Ops/sec
grepAlone 3001571.8 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • $.grep

  • array.find

  • array.where

  • angular.$filter

  • array.filter

  • lodash.filter

  • underscore.filter

  • grepAlone


;