Monday, January 5, 2026

Python Numbers Every Programmer Should Know

Michael Kennedy (via Hacker News):

For example, how fast or slow is it to add an item to a list in Python? What about opening a file? Is that less than a millisecond? Is there something that makes that slower than you might have guessed? If you have a performance sensitive algorithm, which data structure should you use? How much memory does a floating point number use? What about a single character or the empty string? How fast is FastAPI compared to Django?

I wanted to take a moment and write down performance numbers specifically focused on Python developers. Below you will find an extensive table of such values.

Previously:

Comments RSS · Twitter · Mastodon

Leave a Comment