Of the following layers of the heart wall, which consumes the most energy?

A. Epicardium
B. Myocardium
C. Endocardium
D. Visceral pericardium