MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/learnjavascript/comments/nc6i5j/remove_duplicate_value_from_array/gy43ekh/?context=3
r/learnjavascript • u/suprabha-supi • May 14 '21
89 comments sorted by
View all comments
20
Does this perform better than filter()?
0 u/[deleted] May 14 '21 [deleted] 1 u/StoneCypher May 14 '21 ten thousand is far too small of a sample. you're more measuring context switches than anythingplease 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
0
[deleted]
1 u/StoneCypher May 14 '21 ten thousand is far too small of a sample. you're more measuring context switches than anythingplease 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
1
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
20
u/slowthedataleak May 14 '21
Does this perform better than filter()?