views:

45

answers:

2

I want to figure out how much money I'd save if I optimise some part of my web app. If I save 100 cpu milliseconds over 50K calls to the app, how much electricity is that not using in a day? How about over a year?

I've tried to find some figures thru google, but my googling mojo is failing me at present.

+3  A: 

You can't calculate something that specific. You can only conduct an experiment and see what happens.

But honestly I would rather spend time refactoring code for better maintainability and adding new features the customers will like and pay for, so that I won't have to think about electricity.

Developer Art
ok, but now think of a scenario where I could apply that optimisation to an entire data center....... My app may only have a small cost saving, but if you apply that to another 500 applications, the electricity savings may become more relevant.
pms1969
Do you own a data center?
Developer Art
No, it's work related. My app co-exists with about 100 other apps on a server farm, and that's about to be integrated into a larger context (not sure how many, but hundreds is reasonable).
pms1969
A: 

When "optimizing" it is always important to focus on what you want to "optimize" - in this case, your electricity bill. I would not even bother looking at changing code in an attempt to affect your electricity bill. I would look at the computer's power supply, cooling fans, heat sink, etc. and optimize those things for energy efficiency (buy new, more efficient components). More than likely it will cost less than several hours of a software engineer "optimizing" code for energy efficiency.

SingleShot