Run details:
Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/115.0
Firefox 115
Linux
Desktop
3 months ago
Test name Executions per second
Lodash uniqBy 2860.4 Ops/sec
new Set() Destructuring 2361.3 Ops/sec
uniq for loop 8373.0 Ops/sec
uniq by forEach 137.2 Ops/sec
uniq by filter 72.4 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • Lodash uniqBy

  • new Set() Destructuring

  • uniq for loop

  • uniq by forEach

  • uniq by filter