How Slow is Python Compared to C

45,000 times slower!

Peter Xie
4 min readJul 13, 2020

--

OMG
Photo by Ben White on Unsplash

To compare the computation performance between Python and C languages, let’s do a loop for sum in one second. The code itself is pretty much self-explanatory.

Python

--

--