Johannes Baum
1 min readApr 20, 2020

--

Hi Alex,
I did some performance testing with these operations on Node.js on my MacBook. I did not release the results because they should not be seen as a professional benchmark of low level operations (because they are definitely not). Insertions turned out to be a bit slower on Maps but lookups are way faster. However, in many cases you might want to store keys that are not strings. The conversion into strings destroyed any speed advantage of a plain object in my tests runs.

Sign up to discover human stories that deepen your understanding of the world.

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

--

--

Johannes Baum
Johannes Baum

Written by Johannes Baum

Creator of GridEngine (https://github.com/Annoraaq/grid-engine) 👾 Software Engineer 🚀 JavaScript/TypeScript

No responses yet

Write a response