Dear friend,
The figure of speech used above is a SIMILE.
It is the figure of speech used when one compares something, someone or someone's actions with another's actions, appearance, etc. They do the same with the help of the words ' like' or ' ... as .... as ...'.
Some of the examples are as follows:
He ran as fast as a lion.
She sang like a nightingale.
Shwetha looks like a doll.
Hope this helps.