ASTM D3575 covers a number of tests for determining properties of polyethylene foams including compressive strength.
Before conducting ASTM D3575, it is important to read the entire specification. Standards can be obtained from appropriate standard authorities.