Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/98.0.4758.82 Safari/537.36
Chrome 98
Windows
Desktop
2 years ago
Test name Executions per second
$.grep 947054.2 Ops/sec
array.find 400838.9 Ops/sec
array.where 1577314.2 Ops/sec
angular.$filter 577766.6 Ops/sec
array.filter 479513.4 Ops/sec
lodash.filter 349408.2 Ops/sec
underscore.filter 468281.3 Ops/sec
grepAlone 1051773.9 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • $.grep

  • array.find

  • array.where

  • angular.$filter

  • array.filter

  • lodash.filter

  • underscore.filter

  • grepAlone


;