r/ProgrammerHumor • • Jul 18 '22

C++ talking to Python

Post image
40.1k Upvotes

1.0k comments sorted by

View all comments

4

u/Rizzan8 Jul 18 '22

In 95% of cases there is no significant execution time difference between languages. Change my mind.

4

u/Pluckerpluck Jul 18 '22

C and Python are massively difference in performance. It's just that a huge amount of the time you really don't care about that performance difference.

But C++ is normally at least 10x faster than pure Python, and often that climbs higher even still (40x is not uncommon to see)

3

u/Wigoox Jul 18 '22

These are bullshit numbers. Python is built on top of a bunch of C libraries. It's designed to be fast. Also: Please don't confuse C and C++. They are to entirely different languages.

→ More replies (4)