Run details:
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36
Chrome 120
Linux
Desktop
11 months ago
Test name Executions per second
Lodash uniqBy 4427.1 Ops/sec
new Set() Destructuring 3341.1 Ops/sec
uniq for loop 1528.9 Ops/sec
uniq by forEach 1810.5 Ops/sec
uniq by filter 1124.7 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • Lodash uniqBy

  • new Set() Destructuring

  • uniq for loop

  • uniq by forEach

  • uniq by filter