There's a more glaring deficiency than that, which is that CPU is rarely the bottleneck on a webserver.
Most likely, the overhead of running a server is so large that the power consumption problem is all about saving servers, rather than saving CPU cycles. In which case these other variables are just as likely to be a big concern as the speed of your HTML template's WHILE loops.