Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/95.0.4638.69 Safari/537.36
Chrome 95
Windows
Desktop
2 years ago
Test name Executions per second
$.grep 970011.8 Ops/sec
array.find 392021.6 Ops/sec
array.where 1662856.0 Ops/sec
angular.$filter 603642.3 Ops/sec
array.filter 414183.3 Ops/sec
lodash.filter 1030197.0 Ops/sec
underscore.filter 1035413.0 Ops/sec
grepAlone 1106513.0 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • $.grep

  • array.find

  • array.where

  • angular.$filter

  • array.filter

  • lodash.filter

  • underscore.filter

  • grepAlone