3 ms·
Must be careful with the results on that page. It shows map-string as being slower for ES6 (using `new Map()`) compared to ES5 (using `{}`), and yet I found the
by gorhill 10y ago
Must be careful with the results on that page. It shows map-string as being slower for ES6 (using `new Map()`) compared to ES5 (using `{}`), and yet I found the opposite, that ES6's Map() is faster in my benchmark[1].
[1] https://gorhill.github.io/obj-vs-set-vs-map/ https://gorhill.github.io/obj-vs-set-vs-map/