Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:109.0) Gecko/20100101 Firefox/117.0
Firefox 117
Mac OS X 10.15
Desktop
one year ago
Test name Executions per second
Lodash uniqBy 3009.6 Ops/sec
new Set() Destructuring 2543.1 Ops/sec
uniq for loop 8481.8 Ops/sec
uniq by forEach 221.0 Ops/sec
uniq by filter 115.7 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • Lodash uniqBy

  • new Set() Destructuring

  • uniq for loop

  • uniq by forEach

  • uniq by filter