Intersection filter vs lodash intersection test unsorted array

4 months ago
User agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.132 Safari/537.36
Test name Executions per second
filter unsorted 1279263.0 Ops/sec
lodash intersection unsort 1269864.0 Ops/sec
filter sorted 1312277.0 Ops/sec
lodash intersection sorted 838276.4 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • filter unsorted

  • lodash intersection unsort

  • filter sorted

  • lodash intersection sorted

Open this result on MeasureThat.net