Which figure of speech is used in this text?
The old wooden rocking chair that Tracy brought home from the rummage sale was as comfortable as a bed of nails.