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 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 the diversity of performance testing, there is room for further improvement

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

Embodiment 1

[0014] Embodiment 1, program performance testing method.

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

[0016] figure 1 In S100 , preset collection control parameters for performance test indicators of the PHP program to be tested, and the collection control parameters at least include: collection frequency of performance test indicators.

[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 acquisition control parameters in this embodiment can also include: total acquisition control switch, real-time monitoring performance test indicator control switch, function occupation CPU acquisition control switch, function acquisition memory acquisition control switch, function occupation according to actual test requirements. One or more (or even all) of the collection control switches for the number ...

Embodiment 2

[0098] Embodiment 2. An Xhprof-based PHP program performance testing device. The device in this embodiment can be set in a server running a PHP program that needs to be tested for performance.

[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 , a collection module 220 , a recording module 230 and a performance module 240 .

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

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

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