An author makes a comparison between the story's protagonist and a famous historical figure. Which figure of speech did they use?

Allusion
Context clue
Onomatopoeia
Personification