The invention provides a method for automatic adjustment of a linpack performance test. The method specifically includes the following steps that the theoretical value and expected value of CPU performance are calculated; the N value and the NB value are continuously adjusted, and automatic adjustment of the linpack performance test is achieved. The invention further provides a system for automatic adjustment of the linpack performance test. The system comprises a CPU performance value calculation module and an automatic optimization module, wherein the CPU performance value calculation module is used for reading the information of the core number, the number and basic frequency of a CPU, and calculating the theoretical value and expected value of the CPU performance; the automatic optimization module is used for modifying the NB value and N value of a configuration file, wherein N represents the operation order of a linpack, and NB represents the size of a solved matrix block. Automatic optimization of the linpack performance test can be achieved, automated configuration is achieved, automatic running of the test is achieved, the optimal result is output, it is unnecessary to artificially modify the configuration file, the labor resource and the time resource of the test are saved, and simplification and automation of the test are achieved.