Which of the following is an example of a metaphor?

Ali is a walking dictionary, she knows so many words!

My sister cries like a baby whenever we watch a sad movie.

Her tears flowed like a river.

I fall asleep as soon as I get home every day.

Her tears flowed like a river.