Python consumes 38x more energy than Java
stratoflow.com
Python consumes 38x more energy than Java
1–10 of 142 posts
Re: Python consumes 38x more energy than Java
#2Re: Python consumes 38x more energy than Java
#3EDIT: fwiw, classic Fortran is twice as fast as java :P As is Rust, but that's less funny to me
Re: Python consumes 38x more energy than Java
#4Re: Python consumes 38x more energy than Java
#5It probably does not balance the 38x, and probably the JIT optimizes parts of it away, but surely the cost is far from zero.
Also what about the computational resources it takes to just run a JVM, compared to running a Python program?
Re: Python consumes 38x more energy than Java
#6Re: Python consumes 38x more energy than Java
#7Well 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.
Re: Python consumes 38x more energy than Java
#8The 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
EDIT: seems to be https://chapel-lang.org/
Re: Python consumes 38x more energy than Java
#9Even more clickbaity title would have been "Python consumes 70x more energy than Rust"
Re: Python consumes 38x more energy than Java
#10One 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.
From my personal experience: benchmarks showed Jruby was MUCH MUCH faster the 'normal' Cruby. But try running a basic rails application on jruby and it's 10-100x slower, even after minutes of repeating the same request.
(disclaimer, this was a few years back and purely anecdotal)