1. A data processing system comprising: a processing system; a memory coupled to the processing system, the memory comprising a machine-readable non-transitory storage medium having instructions therein, which when executed by the processing system, cause the processing system to perform a method, the method comprising: detecting a change in an operating environment of the data processing system, wherein the data processing system includes a plurality of executables for a task, each executable capable of performing the task; in response to the change detected, performing one or more runs of the executables on the data processing system to measure power consumption of the executables to perform the task under the operating environment; selecting one of the executables for the task based on the measured power consumption for the task under the operating environment of the data processing system; and in response to a future request to perform the task, executing the selected one executable without performing the remaining executables.