Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.67 Safari/537.36
Chrome 87
Mac OS X 10.14.6
Desktop
3 years ago
Test name Executions per second
$.grep 1260658.4 Ops/sec
array.find 326639.7 Ops/sec
array.where 1925866.0 Ops/sec
angular.$filter 730749.0 Ops/sec
array.filter 435459.3 Ops/sec
lodash.filter 1307352.0 Ops/sec
underscore.filter 1174225.2 Ops/sec
grepAlone 1280384.5 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • $.grep

  • array.find

  • array.where

  • angular.$filter

  • array.filter

  • lodash.filter

  • underscore.filter

  • grepAlone


;