What is the best way to compact sub grade for a sidewalk?

What is the best way to compact sub grade for a sidewalk?