I'd like to see the methodology behind those results. Seems to me that declaring an object is going to necessarily be faster than a series of comparisons (although not by much, I suppose, as the compiler can optimize static comparisions into a hash table in the same way it might optimize an object literal).

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

Aurelia Fenderson-Peters
Aurelia Fenderson-Peters

Written by Aurelia Fenderson-Peters

20+ years writing code of various sorts. Full of trans magic.

No responses yet

Write a response