Even more clickbaity title would have been "Python consumes 70x more energy than Rust"
Everything consumes more energy than C
My intuition states that this isn't the case, but intuition can be wrong.
21–30 of 142 posts
Even more clickbaity title would have been "Python consumes 70x more energy than Rust"
Everything consumes more energy than C
My intuition states that this isn't the case, but intuition can be wrong.
The actual benchmark: https://benchmarksgame-team.pages.debian.net/benchmarksgame/... EDIT: fwiw, classic Fortran is twice as fast as java :P As is Rust, but that's less funny to me
They also seemed to have avoided libraries like numpy.
In my mind, python made it possible to hardware optimize with libraries like numpy quite easily. Avoiding it is a mistake. I'll try to see if I have time to play the game myself and throw my attempt in there.
One should always be skeptical of these sorts of benchmarks, especially against Java, and I say this as primarily a Java developer. Well optimized Java is very lean and can be incredibly performant, but the median modern Java app is an obese cronenberg made out of gigabytes of SpringBoot dependencies. That's not particularly fast; and well optimized python will run circles around it.
You seem to be conflating speed and memory usage. A spring boot app will generally be very performant. It will indeed use more memory though.
Earlier quoted context omitted.
Everything consumes more energy than C
Sometimes I wonder if that's true long term. The amount of bugs, security issues, and code churn surrounding C code bases is pretty wild. If everybody and all their deployments has to recompile a C code base 100 times over the course of three years to get patches, fixes, etc it makes me wonder what the real cost of C is? My intuition states that this isn't the case, but intuition can be wrong.
The actual benchmark: https://benchmarksgame-team.pages.debian.net/benchmarksgame/... EDIT: fwiw, classic Fortran is twice as fast as java :P As is Rust, but that's less funny to me
Thanks for this link. They also seemed to have avoided libraries like numpy. In my mind, python made it possible to hardware optimize with libraries like numpy quite easily. Avoiding it is a mistake. I'll try to see if I have time to play the game myself and throw my attempt in there.
The actual benchmark: https://benchmarksgame-team.pages.debian.net/benchmarksgame/... EDIT: fwiw, classic Fortran is twice as fast as java :P As is Rust, but that's less funny to me
Fortran is a beast. People crap on it all the time yet use it often millions of times a day without realizing it.
I think most of the people who "crap on" Fortran, when they say "Fortran", mean FORTRAN 77, not Fortran 2018
The actual benchmark: https://benchmarksgame-team.pages.debian.net/benchmarksgame/... EDIT: fwiw, classic Fortran is twice as fast as java :P As is Rust, but that's less funny to me
Fortran is a beast. People crap on it all the time yet use it often millions of times a day without realizing it.
Does this table take into account energy used while developing/maintaining?
Here is the source of the table: https://greenlab.di.uminho.pt/wp-content/uploads/2017/10/sle...