Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_6) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/14.0.2 Safari/605.1.15
Safari 14
Mac OS X 10.15.6
Desktop
3 years ago
Test name Executions per second
$.grep 1848642.0 Ops/sec
array.find 2396868.5 Ops/sec
array.where 2623498.5 Ops/sec
angular.$filter 864598.9 Ops/sec
array.filter 1757346.2 Ops/sec
lodash.filter 1904233.8 Ops/sec
underscore.filter 1612187.1 Ops/sec
grepAlone 1879587.8 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • $.grep

  • array.find

  • array.where

  • angular.$filter

  • array.filter

  • lodash.filter

  • underscore.filter

  • grepAlone


;