A conference talk exploring whether generative AI can estimate the energy consumption of code before direct measurement. Using a custom theoretical model (mapping CPU operations to energy units), the speaker demonstrates how an AI assistant called Sparky can analyze code patterns and classify waste as underutilization, waiting patterns, or bottlenecks. Two concrete examples are shown: an OpenJDK C++ bug fix that reduced file I/O overhead by ~40x, and a Java JSON serialization optimization switching from StringWriter to StringBuilder, saving roughly 0.31 kWh per terabyte serialized. The core argument is that while AI estimates are imperfect and can hallucinate, they can guide developers toward energy-significant optimizations at scale across large fleets of containers and VMs.
Sort: