Run details:
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/95.0.4638.54 Safari/537.36
Chrome 95
Linux
Desktop
3 years ago
Test name Executions per second
$.grep 2113807.2 Ops/sec
array.find 833904.6 Ops/sec
array.where 3171701.5 Ops/sec
angular.$filter 1201064.2 Ops/sec
array.filter 905078.9 Ops/sec
lodash.filter 658544.4 Ops/sec
underscore.filter 944900.8 Ops/sec
grepAlone 2175520.2 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • $.grep

  • array.find

  • array.where

  • angular.$filter

  • array.filter

  • lodash.filter

  • underscore.filter

  • grepAlone


;