pull down to refresh
221 sats \ 2 replies \ @SimpleStacker 30 Jul \ on: Python is 71x Slower, Uses 75x More Energy, Than C devs
Interesting, but IMO it's just not a useful comparison here. Any computationally intensive task in Python is usually done with libraries written in C.
Not to mention, dev time matters and has an energy cost as well.
Yeah, he mentions that as a caveat that all the benchmarks are done using own language scripting abilities... no external functions are called.
And indeed, you're right to highlight that no self-respecting python coder won't use efficient external
lapack
or arpack
libraries to do the computationally heavy matrix operations. numpy
is nearly fully C
-code under the hood with some C++
as well.reply
Disappointed/surprised
Fortran
does significantly worse than C...Edit: ok, the benchmarks are not only scientific computational ones. For the latter, Fortran still acts very well...
reply