Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4692.99 Safari/537.36
Chrome 97
Mac OS X 10.15.5
Desktop
2 years ago
Test name Executions per second
Lodash uniqBy 1868.3 Ops/sec
new Set() Destructuring 1770.7 Ops/sec
uniq for loop 906.5 Ops/sec
uniq by forEach 63.1 Ops/sec
uniq by filter 32.5 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • Lodash uniqBy

  • new Set() Destructuring

  • uniq for loop

  • uniq by forEach

  • uniq by filter