Run details:
Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.135 Safari/537.36
Chrome 84
Windows 7
Desktop
4 years ago
Test name Executions per second
$.grep 659365.9 Ops/sec
array.find 280097.1 Ops/sec
array.where 1026188.0 Ops/sec
angular.$filter 419860.8 Ops/sec
array.filter 280393.2 Ops/sec
lodash.filter 673339.1 Ops/sec
underscore.filter 642448.1 Ops/sec
grepAlone 694297.4 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • $.grep

  • array.find

  • array.where

  • angular.$filter

  • array.filter

  • lodash.filter

  • underscore.filter

  • grepAlone