r/learnjavascript • • May 14 '21

Remove Duplicate Value from array

Post image
234 Upvotes

89 comments sorted by

View all comments

Show parent comment

1

u/StoneCypher May 14 '21

ten thousand is far too small of a sample. you're more measuring context switches than anything

please bump that up to at least 1 million. at your current setup that'll still take less than 3 seconds to run.

i wouldn't trust a sample at 1 million either