"Thinking About Power Usage and Websites" by Chris Coyier https://css-tricks.com/thinking-about-power-usage-and-websites/
It's an interesting thought experiment. In general, on the client side, more CPU does map to more energy usage. And Safari's dev tools actually do have an estimate of battery consumption now.