Energy-performance tradeoffs in data centers and machine learning