Run details:
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Ubuntu Chromium/80.0.3987.87 Chrome/80.0.3987.87 Safari/537.36
Chromium 80
Ubuntu
Desktop
4 years ago
Test name Executions per second
$.grep 363813.0 Ops/sec
array.find 104651.6 Ops/sec
array.where 835735.6 Ops/sec
angular.$filter 119102.9 Ops/sec
array.filter 154375.8 Ops/sec
lodash.filter 557581.7 Ops/sec
underscore.filter 105087.7 Ops/sec
grepAlone 480655.5 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • $.grep

  • array.find

  • array.where

  • angular.$filter

  • array.filter

  • lodash.filter

  • underscore.filter

  • grepAlone