whats the simile

the sea hushed the shoreline, rocking the land to sleep
or
the child pecked at his food like a bird searching for worms​