摘要 |
A program performance test method and device, which are used for testing the performance of an Xhprof-based PHP program. The method comprises: presetting a collection control parameter of a performance test index for a PHP program, wherein the collection control parameter at least comprises a collection frequency of the performance test index (S100); in the process of simulating a large number of users accessing a server so as to test the performance of the PHP program in the server, acquiring the collection control parameter (S110); according to the collection control parameter, collecting a performance test index of each function in the PHP program in the test process (S120); storing each performance test record formed by each collection during the operation of the PHP program and containing a function identifier and the performance test index in the same database (S130); and according to the performance test record stored in the database, determining the performance of the function in the PHP program (S140). |