Re:Energy Efficiency Across Programming Languages
by igouy on Thursday September 14, 2017 @05:08PM
(#15252532)
Maybe we should look at "4 Threats to Validity" section of their paper and ask whether they have really done enough to suggest that their results should be considered general rather than specific.
Re:Energy Efficiency Across Programming Languages
by yjftsjthsd-h on Thursday September 14, 2017 @09:34PM
(#15253899)
Perhaps I'm over simplifying to the point of making mistakes, but intuitively I would expect that performance and Energy Efficiency are strongly correlated, because I assume that each instruction executed takes a certain amount of time and a certain amount of energy, and that this skills roughly linearly. That is, executing n instructions takes A * n time and B * n energy, so of course making it finish sooner means less instructions means less energy.
Re:Energy Efficiency Across Programming Languages
by jackmott on Thursday September 14, 2017 @05:00PM
(#15252476)
performance usually == energy efficiency on modern cpus. race to shutdown.
Re:Energy Efficiency Across Programming Languages
by igouy on Thursday September 14, 2017 @05:11PM
(#15252555)
Does your comment agree or disagree with what they measure?
Re:Energy Efficiency Across Programming Languages
by jackmott on Thursday September 14, 2017 @05:41PM
(#15252757)
The implementations in the benchmark game are all targeting performance.
This will almost always also be the most energy efficient thing on modern cpus.
It will not always be the most memory efficient way. I neither agree or disagree with what they are measuring, its just data. I would not look at this if I was trying to get an idea of what languages are most memory efficient, maybe.
- It would be weird to expect programs specifically optimized for a performance benchmark, to also be optimal for energy usage or memory. Maybe less weird for energy, if runtime is the biggest factor in how much energy gets used. But I'd expect there to be huge tradeoffs between runtime and memory usage, once we start really optimizing for memory.
- Running the Benchmarks Game has meant doing a lot of work to figure out what the relationship between "optimal" and "representative" is, and what the rules of the game should be as a result. Even if we take it for granted that we've answered those questions in a way that gives us useful benchmarks for performance, it would be weird to expect the answers to be exactly the same in benchmarks for energy or memory.