CN115904913A - Method, system, medium and equipment for improving pressure test performance - Google Patents

Method, system, medium and equipment for improving pressure test performance Download PDF

Info

Publication number
CN115904913A
CN115904913A CN202211732509.6A CN202211732509A CN115904913A CN 115904913 A CN115904913 A CN 115904913A CN 202211732509 A CN202211732509 A CN 202211732509A CN 115904913 A CN115904913 A CN 115904913A
Authority
CN
China
Prior art keywords
interface
file
pressure test
parameter
abnormal
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202211732509.6A
Other languages
Chinese (zh)
Inventor
饶阳婷
汤进贤
金昊
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Qizhidao Network Technology Co Ltd
Original Assignee
Qizhidao Network Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Qizhidao Network Technology Co Ltd filed Critical Qizhidao Network Technology Co Ltd
Priority to CN202211732509.6A priority Critical patent/CN115904913A/en
Publication of CN115904913A publication Critical patent/CN115904913A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Test And Diagnosis Of Digital Computers (AREA)

Abstract

The embodiment of the application discloses a method, a system, a medium and equipment for improving pressure test performance, wherein the method comprises the following steps: when an error prompt generated in the process of performing pressure test on a target server is detected, determining an abnormal interface in the target server corresponding to the error prompt; determining a parameter replacement file of the abnormal interface according to the performance requirement of the abnormal interface; and updating the performance requirement of the abnormal interface according to the parameter replacement file, and carrying out pressure test on the abnormal interface again. By adopting the embodiment of the application, the parameter file can be automatically replaced, and the accuracy of the pressure test is further improved.

Description

Method, system, medium and equipment for improving pressure test performance
Technical Field
The application relates to the field of pressure testing, in particular to a method, a system, a medium and equipment for improving pressure testing performance.
Background
With the continuous development of big data, different data parameters cause great differences in response time of interfaces, and when high concurrent data volume access is encountered, if the bearing capacity of the interfaces is not correctly evaluated, a database may be crashed.
In practical application, because the interface uses the same parameter to generate a buffer phenomenon and generate a corresponding error prompt in the pressure test process, the parameter requested in the pressure test script needs to be replaced, and in the prior art, the parameter file configuration of the original pressure test file is usually modified and uploaded in a manual mode, and because the manual operation easily causes an operation problem, the accuracy of the pressure test is low.
Disclosure of Invention
The application provides a method, a system, a medium and equipment for improving pressure test performance, which can automatically replace parameter files and further improve the accuracy of pressure test.
In a first aspect of the present application, a method for improving pressure test performance is provided, which is applied to a pressure test platform, and includes:
when an error prompt generated in the process of performing pressure test on a target server is detected, determining an abnormal interface in the target server corresponding to the error prompt;
determining a parameter replacement file of the abnormal interface according to the performance requirement of the abnormal interface;
and updating the performance requirement of the abnormal interface according to the parameter replacement file, and carrying out pressure test on the abnormal interface again.
By adopting the technical scheme, after the abnormal interface is determined, the corresponding parameter replacement file can be determined according to the performance requirement of the abnormal interface, so that the performance requirement of the abnormal interface is updated through the parameter replacement file, the pressure test of the abnormal interface is carried out again, manual operation is not needed, and the accuracy of the pressure test is further improved.
Optionally, before the updating the performance requirement of the abnormal interface according to the parameter replacement file, the method further includes:
creating a parameter replacement folder in a directory of the performance requirement of the abnormal interface;
and uploading the parameter replacement file to the parameter replacement folder.
By adopting the technical scheme, the parameter replacement folder is created in the directory with the performance requirement of the abnormal interface and can be used for temporarily storing the uploaded parameter replacement file.
Optionally, the updating the performance requirement of the abnormal interface according to the parameter replacement file includes:
judging whether a parameter file with the same name as the parameter replacement file exists in a directory with the performance requirement of the abnormal interface;
if the parameter file with the same name as the parameter replacing file exists in the abnormal interface performance requirement directory, directly replacing the parameter file by using the parameter replacing file;
if the parameter file with the same name as the parameter replacement file does not exist in the abnormal interface performance requirement directory, copying the parameter replacement file into the abnormal interface performance requirement directory.
By adopting the technical scheme, the parameter file is replaced according to the parameter file name in the directory with the performance requirement of the abnormal interface, manual selection is not needed, and the time of manual intervention is reduced.
Optionally, before determining the abnormal interface in the target server corresponding to the error prompt, the method further includes:
judging whether the number of parameters in a parameterized file of a current pressure testing interface is larger than the number of thread groups running at present and multiplied by cycle number;
if the number of the parameters in the parameterized file of the current interface for pressure test is determined to be larger than the number of the thread groups running at present multiplied by the cycle number, marking the interface as a normal interface;
and if the number of the parameters in the parameterized file of the current interface for pressure test is less than or equal to the number of the thread groups running currently multiplied by the cycle number, marking the interface as an abnormal interface.
By adopting the technical scheme, the parameter number in the parameterized file and the product of the thread group number and the cycle number are compared, so that whether the data caching phenomenon occurs in the test interface is judged, and the interface with the caching phenomenon is marked as an abnormal interface.
Optionally, after the updating the performance requirement of the abnormal interface according to the parameter replacement file and performing the pressure test on the abnormal interface again, the method further includes:
after the pressure test is completed, if the number of the abnormal interfaces is detected to exceed a threshold value, generating a new performance requirement compressed file according to the target server, updating the performance requirement file of the target server according to the new performance requirement compressed file, and performing the pressure test on the target server again.
By adopting the technical scheme, if the number of the abnormal interfaces exceeds the threshold value, the parameter number of the selected parameter file is insufficient, so that the performance requirement file of the target server is directly replaced by the compressed file, the parameter replacement file is prevented from being uploaded one by one, and the replacement efficiency is higher.
Optionally, the method further includes:
judging whether the interface which is currently subjected to the pressure test has an overload phenomenon;
and if the overload phenomenon occurs, stopping the pressure test of the current interface, marking the current interface, and performing the pressure test of the next interface.
By adopting the technical scheme, whether the pressure test platform has an overload phenomenon or not is judged in the pressure test process, so that the influence of the overload phenomenon on the pressure test result caused by the pressure test platform is avoided, and the accuracy of the pressure test result is improved.
Optionally, judging whether the press machine overloads the current interface for performing the pressure test, includes:
acquiring the use conditions of a CPU, a memory and a disk within preset time;
and if at least one of the service conditions of the CPU, the memory and the magnetic disk is determined to exceed a threshold value, determining that the overload phenomenon occurs to the interface which is currently subjected to the pressure test.
By adopting the technical scheme, the service conditions of the CPU, the memory and the disk of the pressure test platform are respectively tested in the pressure test process, so that whether the overload phenomenon occurs or not is judged, and the reason of the overload phenomenon can be determined.
In a second aspect of the present application, there is provided a system for improving pressure testing performance, the system comprising:
the abnormal interface determining module is used for determining an abnormal interface in the target server corresponding to an error prompt when the error prompt generated in the process of performing pressure test on the target server is detected;
the replacing file determining module is used for determining a parameter replacing file of the abnormal interface according to the performance requirement of the abnormal interface;
and the performance requirement updating module is used for updating the performance requirement of the abnormal interface according to the parameter replacement file and carrying out pressure test on the abnormal interface again.
In a third aspect of the application, a computer-readable storage medium is provided, having stored thereon a plurality of instructions adapted to be loaded by a processor and to carry out the above-mentioned method steps.
In a fourth aspect of the present application, there is provided an electronic device comprising: a processor, a memory; wherein the memory stores a computer program adapted to be loaded by the processor and to perform the above-mentioned method steps.
In summary, the present application includes at least one of the following benefits:
1. by adopting the technical scheme, after the abnormal interface is determined, the corresponding parameter replacement file can be determined according to the performance requirement of the abnormal interface, so that the performance requirement of the abnormal interface is updated through the parameter replacement file, the pressure test of the abnormal interface is carried out again, manual operation is not needed, and the accuracy of the pressure test is improved.
2. Through adopting this application technical scheme, in the pressure test process, judge whether overload phenomenon appears in the pressure test platform, avoid because the influence of pressure test platform itself to the pressure test result, and then improve the accuracy of pressure test result.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a schematic flowchart of a method for improving pressure test performance according to an embodiment of the present disclosure;
FIG. 2 is a schematic flow chart of another method for improving pressure test performance according to an embodiment of the present disclosure;
FIG. 3 is a schematic flow chart illustrating a further method for improving pressure test performance according to an embodiment of the present disclosure;
FIG. 4 is a schematic flow chart illustrating another method for improving pressure testing performance according to an embodiment of the present disclosure;
FIG. 5 is a schematic flow chart illustrating a further method for improving pressure test performance according to an embodiment of the present disclosure;
FIG. 6 is a schematic flow chart illustrating another method for improving pressure testing performance according to an embodiment of the present disclosure;
FIG. 7 is a block diagram of a system for improving pressure test performance according to an embodiment of the present disclosure;
fig. 8 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Description of reference numerals: 1. a system for improving pressure testing performance; 11. an abnormal interface determination module; 12. a replacement file determining module; 13. a performance requirement updating module; 1000. an electronic device; 1001. a processor; 1002. a communication bus; 1003. a user interface; 1004. a network interface; 1005. a memory.
Detailed Description
In order to make those skilled in the art better understand the technical solutions in the present specification, the technical solutions in the embodiments of the present specification will be clearly and completely described below with reference to the drawings in the embodiments of the present specification, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments.
In the description of the embodiments of the present application, the words "exemplary," "for example," or "for instance" are used to indicate instances, or illustrations. Any embodiment or design described herein as "exemplary," "for example," or "for example" is not necessarily to be construed as preferred or advantageous over other embodiments or designs. Rather, use of the words "exemplary," "such as," or "for example" are intended to present relevant concepts in a concrete fashion.
In the description of the embodiments of the present application, the term "and/or" is only one kind of association relationship describing an associated object, and means that three relationships may exist, for example, a and/or B may mean: a exists alone, B exists alone, and A and B exist at the same time. In addition, the term "plurality" means two or more unless otherwise specified. For example, the plurality of systems refers to two or more systems, and the plurality of screen terminals refers to two or more screen terminals. Furthermore, the terms "first", "second" and "first" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implicit indication of indicated technical features. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of that feature. The terms "comprising," "including," "having," and variations thereof mean "including, but not limited to," unless otherwise specifically stated.
The technical solutions in the embodiments of the present application will be described clearly and completely with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments.
In one embodiment, please refer to fig. 1, a method for improving pressure test performance is specifically proposed, which can be implemented by relying on a computer program, a single chip microcomputer, or a system for improving pressure test performance based on von neumann architecture. The computer program may be integrated into the application or may run as a separate tool-like application.
Step 101: and when detecting an error prompt generated in the process of performing pressure test on the target server, determining an abnormal interface in the target server corresponding to the error prompt.
The stress test is to simulate a huge workload to test how an application program executes the program under a peak condition, for example, simulate an actual software and hardware environment, run a test tool for a long time to test the reliability of a tested server under a normal load exceeding a user, and test the corresponding time of the tested server, so as to identify a weakness of the program under an extreme load.
Furthermore, the working principle of the cache is that when the CPU needs to read a piece of data, the CPU firstly searches from the cache, if the data is found, the data is immediately read and sent to the CPU for processing, if the data is not found, the data is read from the memory at a relatively slow speed and sent to the CPU for processing, and meanwhile, the data block where the data is located is called into the cache, so that the whole data can be read from the cache later without calling the memory. It is just such a reading mechanism, in the actual test process, the influence of the cache on the test needs to be considered, wherein the most important influence is the influence on the performance, because the cache mainly plays a role in accelerating the CPU to read data, the CPU will copy the frequently read data from the memory to the cache to facilitate the next reading, the reading rate is faster than the reading in the memory, if there is no needed data in the cache, the CPU will read from the memory, if there is no needed data in the memory, the CPU will read from the hard disk, and then put into the memory for calculation, when performing the stress test on the server, if the same operation is repeated, the CPU will directly read data from the cache instead of reading data from the memory, and also not read data from the hard disk, resulting in inaccurate result of the stress test.
Illustratively, when the pressure test platform sequentially performs pressure tests on each interface of the target server, if a cache phenomenon is detected in a certain interface, an error prompt is automatically generated, and when the error prompt is detected, the pressure test platform marks the interface tested at this time as an abnormal interface.
Referring to fig. 2, on the basis of the foregoing embodiment, as an optional embodiment, determining an abnormal interface in the target server may specifically include the following steps:
step 201: and judging whether the number of the parameters in the parameterized file of the current pressure testing interface is larger than the number of the thread groups running at present multiplied by the cycle number.
The number of the thread groups refers to the number of concurrencies, and specifically can be understood as how many users access the interface at the same time, the setting of the cycle number does not change the number of the concurrencies, and can achieve the effect of prolonging the concurrency time, and the total number of requests for the interface is equal to the number of the thread groups multiplied by the cycle number.
For example, when the current interface is subjected to a stress test, whether the interface has a cache phenomenon may be determined by comparing the number of parameters in a parameterized file used by the test interface with the product of the number of thread groups and the number of cycles.
Step 202: and if the number of the parameters in the parameterized file of the current interface for pressure test is determined to be larger than the number of the thread groups running at present multiplied by the cycle number, marking the interface as a normal interface.
Step 203: and if the number of the parameters in the parameterized file of the current interface for pressure test is less than or equal to the number of the thread groups running currently multiplied by the cycle number, marking the interface as an abnormal interface.
Exemplarily, if it is determined that the number of parameters in the parameterized file of the pressure test interface is smaller than the product of the number of currently running thread groups multiplied by the number of cycles, it indicates that the interface has a cache phenomenon, the interface is marked as an abnormal interface, meanwhile, the execution status of the interface is marked as 0, and an error prompt is generated; if the number of the parameters in the parameterized file of the pressure test interface is larger than the product of the number of the currently operated thread groups multiplied by the cycle number, which indicates that the interface has no cache phenomenon, the interface is marked as a normal interface, the execution condition of the interface is marked as 1, and the pressure test is continuously carried out on the next interface.
Step 102: and determining a parameter replacement file of the abnormal interface according to the performance requirement of the abnormal interface.
Illustratively, the performance requirement refers to a file created by the pressure test platform according to a requirement name, a performance index, response time, an error rate threshold value and the like of the target test server, the file includes a jmx script file and a data folder, the data folder exists in a parameterized file used by the tested interface, when the interface is determined to be an abnormal interface, the interface is indicated to have a cache phenomenon, at this time, the parameter file needs to be updated, and the parameter folder used for uploading at this time is defined as a parameter replacement folder.
Referring to fig. 3, on the basis of the foregoing embodiment, as an alternative embodiment, before the step of determining the parameter replacement file of the abnormal interface according to the performance requirement of the abnormal interface is performed, the following steps may be further performed:
step 301: a parameter replacement folder is created in a directory of performance requirements of the anomalous interface.
Illustratively, the parameter replacement folder needs to be created in advance in a directory of performance requirements of the exception interface before uploading the parameter replacement file.
Step 302: and uploading the parameter replacement file to a parameter replacement folder.
For example, after the new parameter replacement file is successfully uploaded, the parameter replacement file is saved in a parameter replacement folder named data _ place created under the directory name of the performance requirement id of the abnormal interface, and at this time, the performance requirement and the parameter replacement file may be associated.
Step 103: and updating the performance requirement of the abnormal interface according to the parameter replacement file, and carrying out pressure test on the abnormal interface again.
Exemplarily, when the interface is determined to be an abnormal interface, the parameter file in the performance requirement of the interface needs to be replaced by the parameter replacement file, so as to avoid an error caused by a cache phenomenon, and after the update is completed, the abnormal interface is subjected to a pressure test again.
Referring to fig. 4, on the basis of the foregoing embodiment, as an alternative embodiment, the step of updating the performance requirement of the abnormal interface according to the parameter replacement file further includes the following steps:
step 401: and judging whether a parameter file with the same name as the parameter replacement file exists in the directory with the performance requirement of the abnormal interface.
Step 402: and if the parameter file with the same name as the parameter replacing file exists in the abnormal interface performance requirement directory, directly replacing the parameter file by using the parameter replacing file.
Step 403: and if the parameter file with the same name as the parameter replacement file does not exist in the abnormal interface performance requirement directory, copying the parameter replacement file into the abnormal interface performance requirement directory.
Exemplarily, after a parameter replacement file is uploaded to a parameter replacement folder, the parameter file in the parameter replacement file is compared with a parameter file in a directory with original performance requirements, if txt and csv are files with suffix names, the parameter file with the same name is determined, the parameter file is directly replaced by the parameter replacement file, if txt and csv are files with suffix names, it is determined that the parameter file with the same name as the parameter replacement file does not exist, the parameter replacement file is directly copied into the directory with abnormal interface performance requirements, after all parameter replacement files are replaced and copied, all data _ replace directories and files are deleted, the replaced parameter replacement file automatically re-executes a pressure test on the abnormal interface, and the abnormal interface searches the parameter replacement file updated in the data file from the directory with performance requirements for a pressure test.
On the basis of the foregoing embodiment, as an optional embodiment, after the step of updating the performance requirement of the abnormal interface according to the parameter replacement file and performing the stress test on the abnormal interface again is executed, the following step may be further executed:
after the pressure test is finished, if the number of the abnormal interfaces exceeds the threshold value, generating a new performance requirement compressed file according to the target server, updating the performance requirement file of the target server according to the new performance requirement compressed file, and carrying out the pressure test on the target server again.
Exemplarily, if the number of the abnormal interfaces exceeds the threshold, it indicates that the parameter number of the parameter file in the performance requirement determined according to the target server is insufficient, so that the performance requirement file of the target server is directly replaced by the compressed file, the situation that the parameter replacement files are uploaded one by one is avoided, the file replacement efficiency is higher, and after the replacement is completed, the target server is subjected to the pressure test again.
Referring to fig. 5, on the basis of the above embodiment, as an alternative embodiment, the method for improving the pressure testing performance may further include the following steps:
step 501: and judging whether the interface which is currently subjected to the pressure test has an overload phenomenon.
In practical application, if the overload phenomenon of the pressure test platform is not considered, a larger deviation may exist in a final result of the pressure test, and the accuracy of the pressure test is lower.
Illustratively, when each interface of the target server is subjected to a pressure test, the pressure test platform monitors the resource use condition of the pressure test platform, and then judges whether an overload phenomenon occurs.
Referring to fig. 6, on the basis of the above embodiment, as an alternative embodiment, the step of determining whether the interface currently performing the pressure test has an overload phenomenon may further include the following steps:
step 601: and acquiring the use conditions of the CPU, the memory and the disk within preset time.
Illustratively, in the embodiment of the application, the use conditions of the CPU, the memory and the disk of the device are acquired every 2 seconds by using a python script, and the acquired data are stored in a queue.
Step 602: and if at least one of the service conditions of the CPU, the memory and the disk exceeds a threshold value, determining that the overload phenomenon occurs to the interface which is currently subjected to the pressure test.
Illustratively, the use conditions of the CPU, the memory and the disk are respectively counted, and if the number of times that any one of the use conditions of the CPU, the memory and the disk is greater than 90% is determined to exceed three times, the overload phenomenon of the interface which is currently subjected to the pressure test is determined.
Step 502: and if the overload phenomenon occurs, stopping the pressure test of the current interface, marking the current interface, and performing the pressure test of the next interface.
Illustratively, after the overload phenomenon is determined, the current thread is stopped, the next concurrent script is not executed, the pressure test on the interface is stopped, the overload condition is recorded, the pressure test on the next interface is carried out, after the pressure test on the target server is finished, the reason of the overload phenomenon can be traced, and then the pressure test on the interface with the overload phenomenon is carried out again.
The following are embodiments of the system and method that may be used to implement the present application, and for details not disclosed in the embodiments of the system and method, refer to the embodiments of the method and method.
Referring to fig. 7, in order to provide a system for improving pressure testing performance according to an embodiment of the present application, the system 1 for improving pressure testing performance may include: an abnormal interface determining module 11, a replacement file determining module 12 and a performance requirement updating module 13, wherein:
an abnormal interface determining module 11, configured to determine, when an error prompt generated in a process of performing a pressure test on a target server is detected, an abnormal interface in the target server corresponding to the error prompt;
a replacement file determining module 12, configured to determine a parameter replacement file of the abnormal interface according to a performance requirement of the abnormal interface;
and a performance requirement updating module 13, configured to update the performance requirement of the abnormal interface according to the parameter replacement file, and perform a pressure test on the abnormal interface again.
On the basis of the foregoing embodiment, as an optional embodiment, the system 1 for improving the pressure testing performance may further include: a parameter replacement folder creation module and a parameter replacement file uploading module, wherein:
the parameter replacement folder creating module is used for creating a parameter replacement folder in a directory of the performance requirement of the abnormal interface;
and the parameter replacement file uploading module is used for uploading the parameter replacement file to the parameter replacement folder.
On the basis of the foregoing embodiment, as an optional embodiment, the replacement-file determining module 12 may further include: an abnormal interface judging unit, a parameter replacement file replacing unit and a parameter replacement file copying unit, wherein:
an abnormal interface judging unit, configured to judge whether a parameter file having the same name as the parameter replacement file exists in a directory of performance requirements of the abnormal interface;
a parameter replacement file replacing unit, configured to directly replace the parameter file with the parameter replacement file if the parameter file with the same name as the parameter replacement file exists in the abnormal interface performance requirement directory;
and the parameter replacement file copying unit is used for copying the parameter replacement file into the directory with the abnormal interface performance requirement if the parameter file with the same name as the parameter replacement file does not exist in the directory with the abnormal interface performance requirement.
On the basis of the foregoing embodiment, as an optional embodiment, the system 1 for improving the pressure testing performance may further include: the device comprises a parameter quantity judging module, an abnormal interface marking module, a normal interface marking module and a compressed file uploading module, wherein:
the parameter number judging module is used for judging whether the number of parameters in the parameterized file of the current pressure testing interface is larger than the number of the thread group which runs at present and multiplied by the cycle number;
the normal interface marking module is used for marking the interface as a normal interface if the parameter number in the parameterized file of the current pressure testing interface is determined to be larger than the number of the thread groups which are operated at present and multiplied by the cycle number;
the abnormal interface marking module is used for marking the interface as an abnormal interface if the parameter number in the parameterized file of the current pressure testing interface is determined to be less than or equal to the number of the thread groups running at present multiplied by the cycle number;
and the compressed file uploading module is used for generating a new performance requirement compressed file according to the target server if the number of the abnormal interfaces exceeds a threshold value after the pressure test is finished, updating the performance requirement file of the target server according to the new performance requirement compressed file, and carrying out the pressure test on the target server again.
On the basis of the above embodiment, as an optional embodiment, the system 1 for improving the pressure testing performance may further include: overload phenomenon judgment module and overload phenomenon marking module, wherein:
the overload phenomenon judging module is used for judging whether the overload phenomenon occurs to the interface which is currently subjected to the pressure test;
and the overload phenomenon marking module is used for stopping the pressure test of the current interface, marking the current interface and carrying out the pressure test of the next interface if the press machine has overload phenomenon.
On the basis of the foregoing embodiment, as an optional embodiment, the overload phenomenon determination module further includes: a use case determining unit and an overload phenomenon determining unit, wherein:
the service condition determining unit is used for acquiring the service conditions of the CPU, the memory and the disk within preset time;
and the overload phenomenon determining unit is used for determining that the overload phenomenon occurs on the interface which is currently subjected to the pressure test if at least one of the using conditions of the CPU, the memory and the magnetic disk is determined to exceed a threshold value.
An embodiment of the present application further provides a computer storage medium, where the computer storage medium may store a plurality of instructions, and the instructions are suitable for being loaded by a processor and executing the method for improving the pressure test performance according to the embodiment shown in fig. 1 to 6, and a specific execution process may refer to specific descriptions of the embodiment shown in fig. 1 to 6, which is not described herein again.
Please refer to fig. 8, which provides a schematic structural diagram of an electronic device according to an embodiment of the present disclosure. As shown in fig. 8, the electronic device 1000 may include: at least one processor 1001, at least one network interface 1004, a user interface 1003, memory 1005, at least one communication bus 1002.
Wherein a communication bus 1002 is used to enable connective communication between these components.
The user interface 1003 may include a Display screen (Display) and a Camera (Camera), and the optional user interface 1003 may also include a standard wired interface and a wireless interface.
The network interface 1004 may optionally include a standard wired interface, a wireless interface (e.g., WI-FI interface), among others.
Processor 1001 may include one or more processing cores, among other things. The processor 1001, which is connected to various parts throughout the electronic device 1000 using various interfaces and lines, performs various functions of the electronic device 1000 and processes data by executing or executing instructions, programs, code sets, or instruction sets stored in the memory 1005 and calling data stored in the memory 1005. Alternatively, the processor 1001 may be implemented in at least one hardware form of Digital Signal Processing (DSP), field-Programmable Gate Array (FPGA), and Programmable Logic Array (PLA). The processor 1001 may integrate one or more of a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), a modem, and the like. Wherein, the CPU mainly processes an operating system, a user interface, an application program and the like; the GPU is used for rendering and drawing the content required to be displayed by the display screen; the modem is used to handle wireless communications. It is understood that the modem may not be integrated into the processor 1001, but may be implemented by a single chip.
The Memory 1005 may include a Random Access Memory (RAM) or a Read-Only Memory (Read-Only Memory). Optionally, the memory 1005 includes a non-transitory computer-readable medium. The memory 1005 may be used to store an instruction, a program, code, a set of codes, or a set of instructions. The memory 1005 may include a stored program area and a stored data area, wherein the stored program area may store instructions for implementing an operating system, instructions for at least one function (such as a touch function, a sound playing function, an image playing function, etc.), instructions for implementing the various method embodiments described above, and the like; the storage data area may store data and the like referred to in the above respective method embodiments. The memory 1005 may optionally be at least one memory device located remotely from the processor 1001. As shown in fig. 8, a memory 1005, which is a computer storage medium, may include an operating system, a network communication module, a user interface module, and a method application for improving stress test performance.
It should be noted that: in the above embodiment, when the device implements the functions thereof, only the division of the functional modules is illustrated, and in practical applications, the functions may be distributed by different functional modules according to needs, that is, the internal structure of the device may be divided into different functional modules to implement all or part of the functions described above. In addition, the apparatus and method embodiments provided by the above embodiments belong to the same concept, and specific implementation processes thereof are described in detail in the method embodiments, which are not described herein again.
In the electronic device 1000 shown in fig. 8, the user interface 1003 is mainly used as an interface for providing input for a user, and acquiring data input by the user; and the processor 1001 may be configured to invoke an application program stored in the memory 1005 that, when executed by the one or more processors, causes the electronic device to perform a method as described in one or more of the above embodiments.
An electronic device readable storage medium having instructions stored thereon. When executed by one or more processors, cause an electronic device to perform a method as described in one or more of the above embodiments.
It is clear to a person skilled in the art that the solution of the present application can be implemented by means of software and/or hardware. The term "unit" and "module" in this specification refers to software and/or hardware capable of performing a specific function independently or in cooperation with other components, wherein the hardware may be, for example, a Field-ProgrammaBLE Gate Array (FPGA), an Integrated Circuit (IC), or the like.
It should be noted that, for simplicity of description, the above-mentioned method embodiments are described as a series of acts or combination of acts, but those skilled in the art will recognize that the present application is not limited by the order of acts described, as some steps may occur in other orders or concurrently depending on the application. Further, those skilled in the art will recognize that the embodiments described in this specification are preferred embodiments and that acts or modules referred to are not necessarily required for this application.
In the foregoing embodiments, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus may be implemented in other manners. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the units is only one type of logical functional division, and other divisions may be realized in practice, for example, multiple units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed coupling or direct coupling or communication connection between each other may be through some service interfaces, indirect coupling or communication connection of devices or units, and may be electrical or in other forms.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one position, or may be distributed on multiple network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit may be implemented in the form of hardware, or may also be implemented in the form of a software functional unit.
The integrated unit, if implemented as a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable memory. Based on such understanding, the technical solution of the present application may be substantially implemented or a part of or all or part of the technical solution contributing to the prior art may be embodied in the form of a software product stored in a memory, and including several instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method described in the embodiments of the present application. And the aforementioned memory comprises: various media capable of storing program codes, such as a usb disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic disk, or an optical disk.
Those skilled in the art will appreciate that all or part of the steps in the methods of the above embodiments may be implemented by associated hardware instructed by a program, which may be stored in a computer-readable memory, which may include: flash disks, read-Only memories (ROMs), random Access Memories (RAMs), magnetic or optical disks, and the like.
The above description is only an exemplary embodiment of the present disclosure, and the scope of the present disclosure should not be limited thereby. That is, all equivalent changes and modifications made in accordance with the teachings of the present disclosure are intended to be included within the scope of the present disclosure. Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure. This application is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains.

Claims (10)

1. A method for improving pressure test performance is applied to a pressure test platform and comprises the following steps:
when an error prompt generated in the process of performing pressure test on a target server is detected, determining an abnormal interface in the target server corresponding to the error prompt;
determining a parameter replacement file of the abnormal interface according to the performance requirement of the abnormal interface;
and updating the performance requirement of the abnormal interface according to the parameter replacement file, and carrying out pressure test on the abnormal interface again.
2. The method for improving the performance of a pressure test according to claim 1, wherein before updating the performance requirement of the exception interface according to the parameter replacement file, the method further comprises:
creating a parameter replacement folder in a directory of the performance requirement of the abnormal interface;
and uploading the parameter replacement file to the parameter replacement folder.
3. The method for improving the performance of a pressure test according to claim 2, wherein the updating the performance requirement of the exception interface according to the parameter replacement file comprises:
judging whether a parameter file with the same name as the parameter replacement file exists in a directory with the performance requirement of the abnormal interface;
if the parameter file with the same name as the parameter replacing file exists in the abnormal interface performance requirement directory, directly replacing the parameter file by using the parameter replacing file;
if the parameter file with the same name as the parameter replacement file does not exist in the abnormal interface performance requirement directory, copying the parameter replacement file into the abnormal interface performance requirement directory.
4. The method of claim 1, wherein before determining the abnormal interface in the target server corresponding to the error prompt, the method further comprises:
judging whether the number of parameters in a parameterized file of a current pressure testing interface is larger than the number of thread groups running at present and multiplied by cycle number;
if the parameter number in the parameterized file of the current interface for pressure test is determined to be larger than the number of the thread groups running at present multiplied by the cycle number, marking the interface as a normal interface;
and if the number of the parameters in the parameterized file of the current interface for pressure test is less than or equal to the number of the thread groups running at present multiplied by the cycle number, marking the interface as an abnormal interface.
5. The method for improving the performance of a pressure test according to claim 1, wherein after the updating the performance requirement of the abnormal interface according to the parameter replacement file and performing the pressure test on the abnormal interface again, the method further comprises:
after the pressure test is completed, if the number of the abnormal interfaces is detected to exceed a threshold value, generating a new performance requirement compressed file according to the target server, updating the performance requirement file of the target server according to the new performance requirement compressed file, and performing the pressure test on the target server again.
6. The method of boosting pressure test performance of claim 1, further comprising:
judging whether the interface which is currently subjected to the pressure test has an overload phenomenon;
and if the overload phenomenon occurs, stopping the pressure test of the current interface, marking the current interface, and performing the pressure test of the next interface.
7. The method for improving the pressure test performance according to claim 6, wherein the judging whether the overload phenomenon occurs to the interface of the press machine currently performing the pressure test includes:
acquiring the use conditions of a CPU, a memory and a disk within a preset time;
and if at least one of the service conditions of the CPU, the memory and the magnetic disk is determined to exceed a threshold value, determining that the overload phenomenon occurs to the interface which is currently subjected to the pressure test.
8. A system for enhancing pressure testing performance, comprising:
the abnormal interface determining module (11) is used for determining an abnormal interface in a target server corresponding to an error prompt when the error prompt generated in the process of performing pressure test on the target server is detected;
a replacement file determining module (12) for determining a parameter replacement file of the abnormal interface according to the performance requirement of the abnormal interface;
and the performance requirement updating module (13) is used for updating the performance requirement of the abnormal interface according to the parameter replacement file and carrying out pressure test on the abnormal interface again.
9. A computer-readable storage medium storing instructions adapted to be loaded by a processor and to perform the method according to any one of claims 1 to 7.
10. An electronic device comprising a processor, a memory and a transceiver, the memory storing instructions and the transceiver being configured to communicate with other devices, the processor being configured to execute the instructions stored in the memory to cause the electronic device to perform the method of any one of claims 1 to 7.
CN202211732509.6A 2022-12-30 2022-12-30 Method, system, medium and equipment for improving pressure test performance Pending CN115904913A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211732509.6A CN115904913A (en) 2022-12-30 2022-12-30 Method, system, medium and equipment for improving pressure test performance

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211732509.6A CN115904913A (en) 2022-12-30 2022-12-30 Method, system, medium and equipment for improving pressure test performance

Publications (1)

Publication Number Publication Date
CN115904913A true CN115904913A (en) 2023-04-04

Family

ID=86471216

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211732509.6A Pending CN115904913A (en) 2022-12-30 2022-12-30 Method, system, medium and equipment for improving pressure test performance

Country Status (1)

Country Link
CN (1) CN115904913A (en)

Similar Documents

Publication Publication Date Title
US10613970B1 (en) Method and system for managing deployment of software application components based on software performance data
CN111563014A (en) Interface service performance test method, device, equipment and storage medium
CN108205469B (en) MapReduce-based resource allocation method and server
CN112269697B (en) Equipment storage performance testing method, system and related device
CN110297743B (en) Load testing method and device and storage medium
CN113656107A (en) Mobile application loading method and device and electronic equipment
CN115757066A (en) Hard disk performance test method, device, equipment, storage medium and program product
CN115981980A (en) System performance testing method, apparatus, device, medium, and program product
CN115407943A (en) Memory dump file generation method, device and equipment and readable storage medium
CN111984452A (en) Program failure detection method, program failure detection device, electronic device, and storage medium
CN114911706A (en) Use case recommendation method, device, equipment and storage medium
CN112685275B (en) Algorithm policy search method and device, electronic equipment and storage medium
CN114647548A (en) Log generation method and device
CN110569157B (en) Storage testing method, device, server and storage medium
CN112181853A (en) Program debugging method, device and system
CN112148599A (en) Performance pressure measurement method, device and equipment
CN115904913A (en) Method, system, medium and equipment for improving pressure test performance
CN115687129A (en) Coverage rate report generation method and device, storage medium and computer equipment
CN115048107A (en) Code compiling method, system, electronic device and storage medium
CN113468020A (en) Memory monitoring method and device, electronic equipment and computer readable storage medium
CN113676377A (en) Online user number evaluation method, device, equipment and medium based on big data
CN109684235A (en) A kind of method, device and equipment of computer system application cache
CN111324532B (en) MPI parameter determination method, device and equipment of parallel computing software
CN110309038B (en) Performance test method and device, electronic equipment and computer readable storage medium
CN111444008B (en) Inter-cluster service migration method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information
CB02 Change of applicant information

Address after: 518000 2201, block D, building 1, Chuangzhi Yuncheng bid section 1, Liuxian Avenue, Xili community, Xili street, Nanshan District, Shenzhen City, Guangdong Province

Applicant after: Qizhi Technology Co.,Ltd.

Address before: 518000 2201, block D, building 1, Chuangzhi Yuncheng bid section 1, Liuxian Avenue, Xili community, Xili street, Nanshan District, Shenzhen City, Guangdong Province

Applicant before: Qizhi Network Technology Co.,Ltd.