Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.102 Safari/537.36
Chrome 70
Windows
Desktop
5 years ago
Test name Executions per second
$.grep 509781.8 Ops/sec
array.find 161790.9 Ops/sec
array.where 786315.8 Ops/sec
angular.$filter 140960.7 Ops/sec
array.filter 176051.9 Ops/sec
lodash.filter 120101.9 Ops/sec
underscore.filter 170063.8 Ops/sec
grepAlone 508485.8 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • $.grep

  • array.find

  • array.where

  • angular.$filter

  • array.filter

  • lodash.filter

  • underscore.filter

  • grepAlone