A system, comprising: a device characteristics data store configured to store device characteristics data for a device, wherein the device characteristics data comprises an operating speed for the device and an initial performance curve characterizing a relationship between operating voltage and operating speed at an initial stage of the device; an operating voltage determination module configured to determine an initial operating voltage for the device using the operating speed for the device and the initial performance curve; and a battery module configured to change the operating voltage of the device to the initial operating voltage from the operating voltage determination module; a heuristics analysis module configured to: track usage patterns of the device, wherein the heuristics analysis module is configured to track an amount of time the device is in different utilization states; and generate a trigger for a margining test by either: generating the trigger for the margining test in response to a particular utilization state exceeding a threshold amount of time; or assigning a weight to each utilization state; and generating the trigger for the margining test in response to the weighted combination of utilization states meeting a particular criterion; a margining test module configured to perform the margining test for the device in response to the trigger, wherein the output of the margining test comprises a current performance curve characterizing the device's current operating speeds at various operating voltages; wherein the operating voltage determination module is further configured to determine a revised operating voltage for the device using the operating speed for the device and the current performance curve; and the battery module is further configured to change the operating voltage of the device to the revised operating voltage from the operating voltage determination module. a device characteristics data store configured to store device characteristics data for a device, wherein the device characteristics data comprises an operating speed for the device and an initial performance curve characterizing a relationship between operating voltage and operating speed at an initial stage of the device; an operating voltage determination module configured to determine an initial operating voltage for the device using the operating speed for the device and the initial performance curve; and a battery module configured to change the operating voltage of the device to the initial operating voltage from the operating voltage determination module; a heuristics analysis module configured to: track usage patterns of the device, wherein the heuristics analysis module is configured to track an amount of time the device is in different utilization states; and generate a trigger for a margining test by either: generating the trigger for the margining test in response to a particular utilization state exceeding a threshold amount of time; or assigning a weight to each utilization state; and generating the trigger for the margining test in response to the weighted combination of utilization states meeting a particular criterion; a margining test module configured to perform the margining test for the device in response to the trigger, wherein the output of the margining test comprises a current performance curve characterizing the device's current operating speeds at various operating voltages; wherein the operating voltage determination module is further configured to determine a revised operating voltage for the device using the operating speed for the device and the current performance curve; and the battery module is further configured to change the operating voltage of the device to the revised operating voltage from the operating voltage determination module. track usage patterns of the device, wherein the heuristics analysis module is configured to track an amount of time the device is in different utilization states; and generate a trigger for a margining test by either: generating the trigger for the margining test in response to a particular utilization state exceeding a threshold amount of time; or assigning a weight to each utilization state; and generating the trigger for the margining test in response to the weighted combination of utilization states meeting a particular criterion; generating the trigger for the margining test in response to a particular utilization state exceeding a threshold amount of time; or assigning a weight to each utilization state; and generating the trigger for the margining test in response to the weighted combination of utilization states meeting a particular criterion; a margining test module configured to perform the margining test for the device in response to the trigger, wherein the output of the margining test comprises a current performance curve characterizing the device's current operating speeds at various operating voltages; wherein the operating voltage determination module is further configured to determine a revised operating voltage for the device using the operating speed for the device and the current performance curve; and the battery module is further configured to change the operating voltage of the device to the revised operating voltage from the operating voltage determination module.