Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_6) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/14.0.1 Safari/605.1.15
Safari 14
Mac OS X 10.15.6
Desktop
3 years ago
Test name Executions per second
$.grep 1555371.8 Ops/sec
array.find 1837548.6 Ops/sec
array.where 2109181.5 Ops/sec
angular.$filter 662644.8 Ops/sec
array.filter 1499381.5 Ops/sec
lodash.filter 1483467.6 Ops/sec
underscore.filter 1322741.5 Ops/sec
grepAlone 1549643.1 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • $.grep

  • array.find

  • array.where

  • angular.$filter

  • array.filter

  • lodash.filter

  • underscore.filter

  • grepAlone


;