The statement “Heavy as a rock” is a simile due to its usage of the word “as”.
Similes use words such as “like” or “as” for a comparison of two objects.
For example,
“The ballerina is as graceful as a swan.”
“The baby is like a monkey swinging around the house.”