Live data from Hacker News

Python consumes 38x more energy than Java

stratoflow.com

11–20 of 142 posts

Re: Python consumes 38x more energy than Java

#11
post #3

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.

Re: Python consumes 38x more energy than Java

#14

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.

Re: Python consumes 38x more energy than Java

#16
post #6

Does this table take into account energy used while developing/maintaining?

Sincerely doubt it does because that's a difficult thing to measure. If you are writing a lambda function at a FAANG company you do way more than break even with a language that has a heavy compilation time. If you're fixing a comment for a hobby project that doesn't ship binaries that you and your nephew use, definitely not.

The deployment and consumption of said code matters a lot for that.

Re: Python consumes 38x more energy than Java

#18
post #3

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.

> People crap on it all the time

only clueless people looking for clout online!

Post reply on HN