What literary device is used in the phrase "lockers slammed shut like a rhythmic beat"?

(1 point)
Responses

SImile
SImile

Metaphor
Metaphor

Personification
Personification

Hyperbole

which one is it? a similie or a personification

The literary device used in the phrase "lockers slammed shut like a rhythmic beat" is a simile.