_.uniq vs Array.from(new Set())

2 years ago
User agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/104.0.5112.79 Safari/537.36
Test name Executions per second
Set 3136084.8 Ops/sec
Array 8330203.5 Ops/sec
HTML Preparation code:
Tests:
  • Set

  • Array

Open this result on MeasureThat.net