Program performance test method and device

A testing method and performance technology are applied in the field of program performance testing device and program performance testing to achieve the effect of reducing the consumption of server resources and improving the accuracy

Inactive Publication Date: 2016-02-17
BEIJING QIHOO TECH CO LTD +1
View PDF2 Cites 8 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] The inventor found in the process of realizing the present invention that the PHP program performance testing method currently provided by the XHProf tool is no matter in the accuracy of the PHP program pe

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Program performance test method and device
  • Program performance test method and device

Examples

Experimental program
Comparison scheme
Effect test

Example Embodiment

[0014] The first embodiment is the program performance testing method.

[0015] Combine below figure 1 The method of this embodiment will be described in detail.

[0016] figure 1 In S100, the collection control parameter for the performance test index of the PHP program to be tested is preset, and the collection control parameter includes at least: the collection frequency of the performance test index.

[0017] Specifically, the collection frequency of the performance test index in this embodiment is mainly used to control the collection frequency of the performance test index.

[0018] The collection control parameters in this embodiment may also include: total collection control switch, control switch for real-time monitoring performance test indicators, collection control switch for CPU usage by function, collection control switch for memory usage by function, function One or more (or even all) of the collection control switches for the number of calls within a predetermined time...

Example Embodiment

[0098] The second embodiment is a PHP program performance testing device based on Xhprof. The device of this embodiment can be installed in a server running a PHP program that needs performance testing.

[0099] Combine below figure 2 The device of this embodiment will be described in detail.

[0100] figure 2 The Xhprof-based PHP program performance testing device shown in is usually set in a server, and the device mainly includes: a storage module 200, an acquisition module 210, an acquisition module 220, a recording module 230, and a performance module 240.

[0101] The storage module 200 is mainly adapted to preset collection control parameters for the performance test indicators of the PHP program, and the collection control parameters here at least include: the collection frequency of the performance test indicators.

[0102] Specifically, the collection frequency of the performance test indicators preset in the storage module 200 is mainly used to control the collection freq...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention discloses a program performance test method and device, and aims at carrying out PHP program performance test on the basis of Xhprof. The method comprises the following steps: presetting a collection control parameter in allusion to a performance test index of a PHP program, wherein the collection control parameter at least comprises a collection frequency of the performance test index; obtaining the collection control parameter in a process of accessing to a server by a large amount of users to test the PHP program performance in the server; collecting the performance test index of each function in the server in the test process according to the collection control parameter; storing collected the performance test records which comprises function identifications and performance test indexes in the PHP program running process in a same database; and determining the performance of the functions in the PHP program according to the performance test records stored in the database.

Description

technical field [0001] The invention relates to performance testing technology, in particular to a program performance testing method and a corresponding program performance testing device, which are used for performance testing of PHP programs based on Xhprof. Background technique [0002] PHP (Hypertext Preprocessor, Hypertext Preprocessor) is a general-purpose open source scripting language. Currently, PHP is mainly used in the field of web development. [0003] PHP programs usually require performance testing during the development process. Currently, the XHProf tool is usually used for performance testing of PHP programs. [0004] The inventor found in the process of realizing the present invention that the PHP program performance testing method currently provided by the XHProf tool is no matter in the accuracy of the PHP program performance test, or in the ease of use of the PHP program performance test, or in the PHP program performance testing method. In terms of ...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
IPC IPC(8): G06F11/36
CPCG06F11/36
Inventor 郭振华
Owner BEIJING QIHOO TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products