Skip Navigation

Counting CPU Instructions in Python

blog.mattstuchlik.com Counting CPU Instructions in Python

Did you know it takes about 17,000 CPU instructions1 to print("Hello") in Python? And that it takes ~2 billion of them to import seaborn? Since writting this I have upgraded Cirron to substract its own overhead; it now measures print at ~9,000 instructions. ↩

Did you know it takes about 17,000 CPU instructions to print("Hello") in Python? And that it takes ~2 billion of them to import a module?

19

You're viewing a single thread.

19 comments
You've viewed 19 comments.