Turning a compost pile takes very little energy. So little in fact that a human can do it with one hand in a minute. Leave the container in the sun for heat, and turn it on an axle. In addition it's only once a day at most.
Heat in the winter would be less than the amount used for those electric blankets. In the summer you could almost power the composter with a car battery.
Cremation takes a about 40 kilowatt hours of electricity or fuel. The process usually requires very expensive furnaces that can get hot enough. In addition it requires special permits and there are a lot of regulations and zoning limitations.
However, 40 kwh isn't that much compared to steel and concrete production. Especially since the per capita is literally 40kwh. Most people use more than that to brush their teeth. The real advantage (of composting) is that it makes a cheaper alternative for families of deceased.