sleep like a log
Also, sleep like a top. Sleep very soundly, as in I slept like a log, or She said she slept like a top. Both of these similes transfer the immobility of an object to that of a person who is sound asleep (since a top spinning quickly looks immobile). The first dates from the late 1600s; the variant is newer.