The invention relates to a testing machine for the durability of a mattress. The machine comprises a test table, a beam, a load device, and an electromagnetic valve, the beam stands on the test table, and the load device is fixed on the beam. The machine is characterized in that the machine further comprises a control device, a test device and a test piece position adjustment cylinder, wherein, the test piece position adjustment cylinder is arranged on the test table, the control device is connected with the load device, and the load device is connected with the test device. The control device controls cylinder working frequency through the electromagnetic valve, so as to adjust the load frequency of load units. The test device is fixed on the ledger plate at the bottom of the load device and in contact with the test piece through a round cushion block. The test device is driven by a motor and pulled by a guide post, the displacement of the test device is measured by a displacement instrument and the applied force is controlled by the strength sensor. The invention is used to test the ability of resisting fatigue stress and surface abrasion of the matters after certain times of to-and-fro pressurizing, has the advantages of simple operation, high efficiency and accurate measure, and belongs to the technical field of product inspection and tests.