Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:124.0) Gecko/20100101 Firefox/124.0
Firefox 124
Mac OS X 10.15
Desktop
10 months ago
Test name Executions per second
Lodash uniqBy 2283.3 Ops/sec
new Set() Destructuring 1708.4 Ops/sec
uniq for loop 7157.2 Ops/sec
uniq by forEach 139.1 Ops/sec
uniq by filter 75.9 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • Lodash uniqBy

  • new Set() Destructuring

  • uniq for loop

  • uniq by forEach

  • uniq by filter