Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:92.0) Gecko/20100101 Firefox/92.0
Firefox 92
Mac OS X 10.15
Desktop
3 years ago
Test name Executions per second
Lodash uniqBy 1828.5 Ops/sec
new Set() Destructuring 1383.9 Ops/sec
uniq for loop 4220.2 Ops/sec
uniq by forEach 95.1 Ops/sec
uniq by filter 51.1 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • Lodash uniqBy

  • new Set() Destructuring

  • uniq for loop

  • uniq by forEach

  • uniq by filter