Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_2) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.0.4 Safari/605.1.15
Safari 13
Mac OS X 10.15.2
Desktop
4 years ago
Test name Executions per second
$.grep 1764328.6 Ops/sec
array.find 2057087.5 Ops/sec
array.where 2475729.5 Ops/sec
angular.$filter 792437.7 Ops/sec
array.filter 1581059.1 Ops/sec
lodash.filter 1737107.8 Ops/sec
underscore.filter 1451842.6 Ops/sec
grepAlone 1775980.9 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • $.grep

  • array.find

  • array.where

  • angular.$filter

  • array.filter

  • lodash.filter

  • underscore.filter

  • grepAlone


;