1. A method comprising: receiving, with a processor, a request for execution of an application; for each of a plurality of datacenters, determining an amount of electricity required to execute the application at the respective datacenter; for each of the plurality of datacenters, determining a cost associated with executing the application at the respective datacenter based, at least in part, on the amount of electricity required to execute the application at the respective datacenter; selecting one of the plurality of datacenters to execute the application based, at least in part, on the cost associated with executing the application at each of the respective datacenters; and executing the application at the selected datacenter.