Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/18.2 Safari/605.1.15
Safari 18
Mac OS X 10.15.7
Desktop
6 days ago
Test name Executions per second
Lodash uniqBy 7751.4 Ops/sec
new Set() Destructuring 7328.7 Ops/sec
uniq for loop 29507.6 Ops/sec
uniq by forEach 522.7 Ops/sec
uniq by filter 284.2 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • Lodash uniqBy

  • new Set() Destructuring

  • uniq for loop

  • uniq by forEach

  • uniq by filter