In my contrived tests, with a fast hash function that produced ~.002% collisions, the HashMap performed ~30% slower than using a plain old object with a toString() function that generated unique ...
This is a result that came out of a discussion with the maintainer of https://github.com/s0ph1e/node-css-url-parser. The initial implementation was built on top of ...