Run details:
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/124.0.0.0 Safari/537.36
Chrome 124
Linux
Desktop
6 months ago
Test name Executions per second
Lodash uniqBy 4365.2 Ops/sec
new Set() Destructuring 2971.7 Ops/sec
uniq for loop 1427.6 Ops/sec
uniq by forEach 1103.8 Ops/sec
uniq by filter 647.2 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • Lodash uniqBy

  • new Set() Destructuring

  • uniq for loop

  • uniq by forEach

  • uniq by filter