HN user

Isobit

4 karma

[ my public key: https://keybase.io/isobit; my proof: https://keybase.io/isobit/sigs/ZPV4r5aGTYsQiCruV9awinOy-ja6DkHYlewHyzpLyd4 ]

Posts0
Comments4
View on HN
No posts found.

Interesting. I did add a return to that benchmark and it didn't seem to affect the results. I would think your test would be identical to mine in performance characteristics, I wonder if it's just the benchmarking methods leading to the difference. I might just go write my own benchmarking like yours since I don't really know what measurethat.net is doing.

It seems intuitively obvious that map would be less efficient, but who knows what V8 is doing to optimize under the hood.