News for hackers. Stuff that matters.
Re:Principles of Green Software Engineering by horsawlarway on Wednesday September 22, 2021 @09:11AM (#28615882)
I think you're firmly into the realm of diminishing returns by the time you're trying to optimize code that runs on a laptop that has a total power draw of 60ish watts.

Frankly - Using my kettle to make coffee twice a day (~15 minutes of runtime) is the same as running my laptop at full power draw for 5 hours.

Just switching a single lightbulb in your house from standard (~100w) to LED (~20w) more than offsets your whole laptop's power usage, assuming you have lights on while working.

Re:Principles of Green Software Engineering by anonymoushn on Wednesday September 22, 2021 @09:27AM (#28616057)
How many laptops does it run on all day, and does anyone run it on desktops instead?
Re:Principles of Green Software Engineering by horsawlarway on Wednesday September 22, 2021 @09:34AM (#28616130)
Even a desktop only runs about 100w unless you're doing something like gaming. Admittedly, a desktop guarantees you're using another screen, so tack on 60w for the external monitor.

You'd still be better off turning off the lights in a single room, in most cases, or simply toggling the AC up literally 1 to 2 degrees.

Re:Principles of Green Software Engineering by jhgb on Wednesday September 22, 2021 @09:52AM (#28616327)
If I remember correctly, my desktop runs at ~20W idle (went down to 15W before I added two extra memory modules) and ~70W fully loaded. That's a 50W delta per eight cores, so around 7W per fully loaded core.
Re:Principles of Green Software Engineering by pjc50 on Wednesday September 22, 2021 @09:17AM (#28615942)
The laptop power draw is dynamic depending on what you're doing with it, including how heavy the webpages are. But I agree that heating will generally dominate domestic use.
Re:Principles of Green Software Engineering by horsawlarway on Wednesday September 22, 2021 @09:21AM (#28615982)
Sure, but I'm being exceedingly generous with 60w, assuming a modern device that's about the limit of power consumption. To quote phoronix benchmarks on my machine:

Lastly, the battery power consumption varied from about 5 Watts during idling and when the screen was automatically dimmed to as high as 40 Watts under the most grueling benchmarks. On average through under load the power consumption was around 18.1 Watts.

https://www.phoronix.com/scan.php?page=article&item=dell-xps...

Re:Principles of Green Software Engineering by jawache on Thursday September 23, 2021 @11:28AM (#28630611)
If your application is used by 1 million people, does your equation become a lot more interesting?