The invention discloses a method for testing compression performance through a testing
machine, which comprises the following specific steps: placing a sample on the upper end surface of a compression main body, and enabling two end surfaces of the sample to be parallel; after the
extensometer is fixed, the testing
machine is reset, and the
extensometer is reset; starting the testing
machine for compression, synchronously acquiring sample load data and average deformation data on two sides by the
extensometer, transmitting the data into the testing machine, generating a stress-strain curve by the testing machine, and reading the compression yield strength, the compression
elastic modulus and the compression strength from the curve. The extensometers on the two sides are directly hung between the upper cover and the compression main body to form a closed symmetrical measurement chain, so that knife edges on the two sides are located in the same
rigid frame, bending deformation is offset, the reading difference is reduced to one tenth of the original value, meanwhile, a
load line and a measurement line coincide, a secondary force transmission path is avoided, and the measurement accuracy is improved. And the flexibility of the rack only affects the overall displacement without changing the relative deformation in the
gauge length of the extensometer, so that the
repeatability of the
elastic modulus is remarkably improved.