Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/103.0.0.0 Safari/537.36
Chrome 103
Windows
Desktop
2 years ago
Test name Executions per second
$.grep 834995.8 Ops/sec
array.find 353493.3 Ops/sec
array.where 1311083.0 Ops/sec
angular.$filter 661344.6 Ops/sec
array.filter 380372.8 Ops/sec
lodash.filter 303117.9 Ops/sec
underscore.filter 423792.5 Ops/sec
grepAlone 1004292.0 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • $.grep

  • array.find

  • array.where

  • angular.$filter

  • array.filter

  • lodash.filter

  • underscore.filter

  • grepAlone