Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.88 Safari/537.36
Chrome 87
Mac OS X 10.15.4
Desktop
3 years ago
Test name Executions per second
$.grep 1494048.4 Ops/sec
array.find 485544.3 Ops/sec
array.where 2299701.8 Ops/sec
angular.$filter 933981.8 Ops/sec
array.filter 570486.6 Ops/sec
lodash.filter 1652544.4 Ops/sec
underscore.filter 1518903.2 Ops/sec
grepAlone 1724611.0 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • $.grep

  • array.find

  • array.where

  • angular.$filter

  • array.filter

  • lodash.filter

  • underscore.filter

  • grepAlone


;