There are different uses of compression in physics and engineering. By compression it is possible to measure mechanical properties of materials such as compressive strength or modulus of elasticity. Scientists do this with press machines.