The pendulum and energy in oscillations

For small swings a pendulum is simple harmonic with period $2\pi\sqrt{L/g}$, and in any oscillator energy sloshes between kinetic and potential while the total stays fixed.

From Physics 1.