Abstract:Python is one of the most popular script language, but the performance is a problem. In this paper, we evaluated the performance of integer arithmetic difference between the Python and C languages by experiment, and analyzed the causes of performance difference from the virtual machine source code level. The paper summarizes several common methods of Python script performance optimization, by one of these, we achieved good results on test.