Skip to content

Scope of the test #9

@Hoijof

Description

@Hoijof

Hi! Very good article!

I'm worried about the statement that Sets are faster that objects in general when that's not true at all :(

Sets are faster for some specific operations like modification and iteration while Object and Array are WAY faster for access.

So for cases where you want a lot of data easy to access but you don't want to modify it often (like a cache)

Object is way better than set.

https://jsperf.com/ip-playground

Guess which ones are Object and Array.
image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions