4 ms·
The first "benchmark" shows dict() being twice as fast, but the rest of the article concludes "The {} is always faster than dict."
by pphysch 3y ago
The first "benchmark" shows dict() being twice as fast, but the rest of the article concludes "The {} is always faster than dict."
- michaelhoffman 3y agoI wonder if they swapped the benchmark results somehow. Because on my computer, I get roughly the same times but with {} twice as fast as dict().
- nathiss 3y agoYes, you're absolutely right. I apologize for this copy-paste mistake. It's fixed now.
- Epa095 3y agoDamb am I happy you commented this! I saw the same, checked it twice, and a final time before posting. But then the results were suddenly as expected (dict() being slower). At least I am not going mad, he must have changed it just now.