Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>Like many comparative questions here, you'll probably need to come up with a benchmark to really determine whether that's true.</p> <p><a href="http://www.lesswatts.org/projects/applications-power-management/index.php" rel="nofollow noreferrer">lesswatts.org has a bit of information on applications power management</a>, as well as several other aspects of power consumption on Linux systems. As a side note, they seem to be using PHP, so that might be worth something in itself :)</p> <p>They keep repeating that you should use <a href="http://www.lesswatts.org/projects/powertop/index.php" rel="nofollow noreferrer">PowerTOP</a> to determine which applications are causing the most power consumption, and you can see from the screenshot that they are checking wakeups from idle, at least.</p> <hr> <p>Most of the time, a web server is sitting idle, then it "serves" for a very brief moment, then it goes back to waiting for the next connection to serve. In that regard, PHP would contribute very little to the entire process: only the serving portion. So I wonder if the actual benchmark was a comparison of a particular Java-based web server vs. Apache/PHP serving similar pages. If that was the case, it's not really a fair comparison of PHP and Java -- either of the two considered as serving an actual page is only active for milliseconds at a time, typically. I would think the actual web server, the one who's selecting or polling connections, is the one that would be hogging power.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload