Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_4) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.1.2 Safari/605.1.15
Safari 13
Mac OS X 10.15.4
Desktop
4 years ago
Test name Executions per second
$.grep 719383.8 Ops/sec
array.find 912887.0 Ops/sec
array.where 890025.1 Ops/sec
angular.$filter 336721.1 Ops/sec
array.filter 634905.8 Ops/sec
lodash.filter 701962.9 Ops/sec
underscore.filter 609300.6 Ops/sec
grepAlone 728126.4 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • $.grep

  • array.find

  • array.where

  • angular.$filter

  • array.filter

  • lodash.filter

  • underscore.filter

  • grepAlone