The main purpose of the compression test is to calculate the behavior or response of the material under the load. It calculates the maximum stress of a material which can sustain under the load. Basically, this test is used to calculate the reaction of the product or material when it is compressed.