Run details:
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/101.0.0.0 Safari/537.36
Chrome 101
Linux
Desktop
2 years ago
Test name Executions per second
Lodash uniqBy 1466.2 Ops/sec
new Set() Destructuring 1623.1 Ops/sec
uniq for loop 583.0 Ops/sec
uniq by forEach 174.6 Ops/sec
uniq by filter 74.8 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • Lodash uniqBy

  • new Set() Destructuring

  • uniq for loop

  • uniq by forEach

  • uniq by filter