CN112363879A - Cache server performance test method, device, equipment and medium - Google Patents

Cache server performance test method, device, equipment and medium Download PDF

Info

Publication number
CN112363879A
CN112363879A CN202011311662.2A CN202011311662A CN112363879A CN 112363879 A CN112363879 A CN 112363879A CN 202011311662 A CN202011311662 A CN 202011311662A CN 112363879 A CN112363879 A CN 112363879A
Authority
CN
China
Prior art keywords
cache server
server
target
performance test
task
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.)
Granted
Application number
CN202011311662.2A
Other languages
Chinese (zh)
Other versions
CN112363879B (en
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.)
Shanghai Lianshang Network Technology Co Ltd
Original Assignee
Shanghai Lianshang 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 Shanghai Lianshang Network Technology Co Ltd filed Critical Shanghai Lianshang Network Technology Co Ltd
Priority to CN202011311662.2A priority Critical patent/CN112363879B/en
Publication of CN112363879A publication Critical patent/CN112363879A/en
Priority to PCT/CN2021/128054 priority patent/WO2022105591A1/en
Application granted granted Critical
Publication of CN112363879B publication Critical patent/CN112363879B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/2247Verification or detection of system hardware configuration
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/2273Test methods

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The embodiment of the disclosure discloses a method, a device, equipment and a medium for testing the performance of a cache server. One embodiment of the method comprises: sending a request for acquiring a performance test task of the cache server to a target server; according to the task information of the performance test task of the cache server returned by the target server, performing performance test operation on the target cache server to obtain a test result of the performance test operation; and sending the test result to the target server. The implementation method can accurately reflect the network and service conditions of the real user of the client. Furthermore, after the cache server is scheduled according to the performance test result of the cache server, the time of the service request can be reduced to a certain extent.

Description

Cache server performance test method, device, equipment and medium
Technical Field
The embodiment of the disclosure relates to the technical field of computers, in particular to a method, a device, equipment and a medium for testing the performance of a cache server of a client.
Background
The performance test of the cache server refers to a method for determining the performance of the cache server by a certain technical means. At present, when a performance test is performed on a cache server, the method generally adopted is as follows: and testing the performance of the cache server through a third-party cache server performance testing platform.
However, when the above-mentioned method is adopted to perform the performance test of the cache server, the following technical problems often exist:
the existing method tests the performance of the cache server from the perspective of the client, so that the performance test result of the cache server is difficult to accurately reflect the network and service conditions of a real user of the client, and further the time of service request is difficult to reduce after the cache server is scheduled according to the performance test result of the cache server.
Disclosure of Invention
This summary is provided to introduce a selection of concepts in a simplified form that are further described below in the detailed description. This summary is not intended to identify key features or essential features of the claimed subject matter, nor is it intended to be used to limit the scope of the claimed subject matter.
Some embodiments of the present disclosure propose a cache server performance testing method, apparatus, device and medium for a client to solve one or more of the technical problems mentioned in the background section above.
In a first aspect, some embodiments of the present disclosure provide a cache server performance testing method for a client, the method including: sending a request for acquiring a performance test task of the cache server to a target server; according to the task information of the performance test task of the cache server, which is returned by the target server, performance test operation is executed on the target cache server to obtain a test result of the performance test operation; and sending the test result to the target server.
In a second aspect, some embodiments of the present disclosure provide an apparatus for cache server performance testing of a client, the apparatus comprising: the first sending unit is configured to send a request for acquiring a performance test task of the cache server to the target server; the execution unit is configured to execute performance test operation on the target cache server according to the task information of the performance test task of the cache server, which is returned by the target server, so as to obtain a test result of the performance test operation; a second sending unit configured to send the test result to the target server.
In a third aspect, some embodiments of the present disclosure provide an electronic device, comprising: one or more processors; a storage device having one or more programs stored thereon, which when executed by one or more processors, cause the one or more processors to implement the method described in any of the implementations of the first aspect.
In a fourth aspect, some embodiments of the present disclosure provide a computer readable medium on which a computer program is stored, wherein the program, when executed by a processor, implements the method described in any of the implementations of the first aspect.
The above embodiments of the present disclosure have the following advantages: by the cache server performance test method for the client, the network and service conditions of the real user of the client can be accurately reflected. Specifically, the reason why the relevant cache server performance test method is difficult to accurately reflect the network and service conditions of the real user of the client is that: the existing method tests the performance of the cache server from the perspective of the client. Based on this, the cache server performance testing method for the client according to some embodiments of the present disclosure actively obtains the cache server performance testing task and performs the corresponding testing operation from the perspective of the client. The method is independent of a third-party testing platform, and the testing process completely depends on the client, so that the testing result can reflect the real testing data of the client. Therefore, the network and service conditions of the real user of the client can be accurately reflected. Furthermore, after the cache server is scheduled according to the performance test result of the cache server, the time of the service request can be reduced to a certain extent.
Drawings
The above and other features, advantages and aspects of various embodiments of the present disclosure will become more apparent by referring to the following detailed description when taken in conjunction with the accompanying drawings. Throughout the drawings, the same or similar reference numbers refer to the same or similar elements. It should be understood that the drawings are schematic and that elements and elements are not necessarily drawn to scale.
FIG. 1 is a schematic diagram of one application scenario of a cache server performance testing method for a client, according to some embodiments of the present disclosure;
FIG. 2 is a flow diagram of some embodiments of a cache server performance testing method for a client according to the present disclosure;
FIG. 3 is a flow diagram of further embodiments of a cache server performance testing method for a client according to the present disclosure;
FIG. 4 is a schematic block diagram of some embodiments of a cache server performance testing apparatus for a client according to the present disclosure;
FIG. 5 is a schematic structural diagram of an electronic device suitable for use in implementing some embodiments of the present disclosure.
Detailed Description
Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While certain embodiments of the present disclosure are shown in the drawings, it is to be understood that the disclosure may be embodied in various forms and should not be construed as limited to the embodiments set forth herein. Rather, these embodiments are provided for a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the disclosure are for illustration purposes only and are not intended to limit the scope of the disclosure.
It should be noted that, for convenience of description, only the portions related to the related invention are shown in the drawings. The embodiments and features of the embodiments in the present disclosure may be combined with each other without conflict.
It should be noted that the terms "first", "second", and the like in the present disclosure are only used for distinguishing different devices, modules or units, and are not used for limiting the order or interdependence relationship of the functions performed by the devices, modules or units.
It is noted that references to "a", "an", and "the" modifications in this disclosure are intended to be illustrative rather than limiting, and that those skilled in the art will recognize that "one or more" may be used unless the context clearly dictates otherwise.
The names of messages or information exchanged between devices in the embodiments of the present disclosure are for illustrative purposes only, and are not intended to limit the scope of the messages or information.
The present disclosure will be described in detail below with reference to the accompanying drawings in conjunction with embodiments.
Fig. 1 is a schematic diagram of an application scenario of a cache server performance testing method for a client according to some embodiments of the present disclosure.
In the application scenario of fig. 1, first, the computing device 101 may send a request 103 to obtain a cache server performance test task to the target server 102. Next, the computing device 101 may execute a performance test operation 105 on the target cache server according to the task information 104 of the cache server performance test task returned by the target server 102, so as to obtain a test result 106 of the performance test operation 105. Finally, the computing device 101 may send the test results 106 to the target server 102.
The computing device 101 may be hardware or software. When the computing device is hardware, it may be implemented as a distributed cluster composed of multiple servers or terminal devices, or may be implemented as a single server or a single terminal device. When the computing device is embodied as software, it may be installed in the hardware devices enumerated above. It may be implemented, for example, as multiple pieces of software and software modules used to provide distributed services, or as a single piece of software or software module. And is not particularly limited herein.
It should be understood that the number of computing devices in FIG. 1 is merely illustrative. There may be any number of computing devices, as implementation needs dictate.
With continued reference to fig. 2, a flow 200 of some embodiments of a cache server performance testing method for a client according to the present disclosure is shown. The performance test method of the cache server for the client comprises the following steps:
step 201, sending a request for obtaining a performance test task of the cache server to the target server.
In some embodiments, an executing agent (e.g., the computing device 101 shown in fig. 1) of the cache server performance testing method for the client may send a request for obtaining the cache server performance testing task to the target server through a wired connection or a wireless connection. The target server may be a server that provides methods that can be called by the client application to the client. The request of the cache server performance test task may include: the target server IP Address (Internet Protocol Address), and the client unique identification code. The destination server IP address may be used to indicate a location of the destination server. The execution main body may send the request for obtaining the cache server performance test task to the target server according to the target server IP address. The client unique identification code may be used to uniquely identify the client. The target server can determine whether task information of a cache server performance test task needs to be sent to the corresponding client according to the unique identification code of the client. It can be understood that, in this way, the target server needs to determine in advance the client unique identification code of the client that needs to receive the task information of the cache server performance test task.
In some optional implementations of some embodiments, the executing agent may send, to the target server, a request for obtaining the cache server performance test task in response to determining that the number of times of starting the client within the preset time period satisfies a first preset condition. The ending time point of the preset time period may be a current time point. The termination time point of the above-mentioned preset time period may also be 59 minutes and 59 seconds when the day is 23. The first preset condition may be that the number of times of starting the client is less than or equal to a preset number of times of starting. The request for obtaining the cache server performance test task may include: the host name of the target server and the unique identification code of the user logged in by the client. The target server hostname may be used to uniquely identify a server. The unique identification code of the client login user can be used for uniquely identifying the user logging in the client. The target server can determine whether task information of a cache server performance test task needs to be sent to the corresponding client according to the unique identification code of the client login user. It can be understood that, in this way, the target server needs to determine the unique identification code of the client login user of the client which needs to receive the task information in advance.
In the implementation mode, the time for sending the request for acquiring the performance test task of the cache server to the target server is increased, the matching degree with the actual application scene is higher, and the applicability is stronger. The consumption of memory resources, network resources and the like of the terminal equipment where the client is located when the request is frequently sent to the target server can be avoided.
As an example, the preset time period may be 24 hours. The termination time point of the above-mentioned preset time period may be 59 minutes and 59 seconds when the day is 23. The preset number of times of activation may be 2.
Step 202, according to the task information of the performance test task of the cache server returned by the target server, performing a performance test operation on the target cache server to obtain a test result of the performance test operation.
In some embodiments, the task information may include: and the test website set is used for the performance test of the cache server. The executing main body executes the performance testing operation on the target cache server according to the task information of the cache server performance testing task returned by the target server to obtain the testing result of the performance testing operation, and may include the following steps:
step one, according to each test website in the test website set, sending a resource acquisition request to the target cache server.
And secondly, acquiring the response time of the cache server related to the resource acquisition request corresponding to each test website in the test website set to obtain a cache server response time set. The cache server response time may refer to a time interval between a time point when the target cache server sends the resource acquisition request and a time point when the resource returned by the target cache server is received.
And thirdly, determining the average value of the response time of each cache server in the cache server response time set to obtain the average response time of the cache servers, and taking the average response time of the cache servers as the test result of the performance test operation.
In some optional implementations of some embodiments, the task information may include: and the test website is used for caching the server performance test. The executing main body executes the performance testing operation on the target cache server according to the task information of the cache server performance testing task returned by the target server, and may include the following steps:
step one, according to the test website, sending a resource acquisition request to the target cache server.
A second step of obtaining response information related to the resource obtaining request, and using the response information as a test result of a performance test operation, where the response information may include at least one of the following: domain name resolution time, Transmission Control Protocol (TCP) connection time, secure socket protocol (SSL) handshake time, cache server response time, resource transmission speed and request result information. The request result information may represent whether the resource is successfully acquired.
In some optional implementation manners of some embodiments, the executing body may, in response to determining that the client start time satisfies a second preset condition, execute the performance test operation of the cache server on the target cache server according to the task information of the cache server performance test task returned by the target server. The second preset condition may be that the client start time is less than a preset start time.
In the implementation manner, description of the opportunity for the target cache server to execute the performance test operation of the cache server is added, the starting time of the client can reflect the blocking degree of the terminal equipment where the client is located to a certain extent, the shorter the starting time is, the lower the blocking degree of the terminal equipment is, through the second preset condition, the performance test operation of the cache server can be performed under the condition that the blocking degree of the terminal equipment is lower, and the influence of the self state of the terminal equipment on the test operation result is reduced. The matching degree with the actual application scene is higher, and the applicability is stronger.
In some optional implementations of some embodiments, the target cache server may be determined by: and determining the cache server indicated by the domain name resolution result of the test website as the target cache server. The domain name resolution result may be an IP address.
Step 203, sending the test result to the target server.
In some embodiments, the execution main body may send the test result of the performance test operation to the target server through a wired connection manner or a wireless connection manner.
The above embodiments of the present disclosure have the following advantages: by the cache server performance test method for the client, the network and service conditions of the real user of the client can be accurately reflected. Specifically, the reason why the relevant cache server performance test method is difficult to accurately reflect the network and service conditions of the real user of the client is that: the existing method tests the performance of the cache server from the perspective of the client. Based on this, the cache server performance testing method for the client according to some embodiments of the present disclosure actively obtains the cache server performance testing task and performs the corresponding testing operation from the perspective of the client. The method is independent of a third-party testing platform, and the testing process completely depends on the client, so that the testing result can reflect the real testing data of the client. Therefore, the network and service conditions of the real user of the client can be accurately reflected. Furthermore, after the cache server is scheduled according to the performance test result of the cache server, the time of the service request can be reduced to a certain extent.
With further reference to fig. 3, a flow 300 of further embodiments of a cache server performance testing method for a client is shown. The process 300 of the method for testing the performance of the cache server for the client comprises the following steps:
step 301, sending a request for obtaining a performance test task of the cache server to the target server.
And step 302, executing performance test operation on the target cache server according to the task information of the cache server performance test task returned by the target server to obtain a test result of the performance test operation.
Step 303, sending the test result to the target server.
In some embodiments, the specific implementation of steps 301 and 303 and the technical effect thereof can refer to steps 201 and 203 in the embodiment corresponding to fig. 2, which are not described herein again.
And step 304, determining the equipment state information of the terminal equipment where the client is located.
In some embodiments, the execution subject may determine device state information of a terminal device where the client is located. Wherein, the device status information may include, but is not limited to, at least one of the following: load information, communication signal strength information, network information. The load information may be a CPU (Central Processing Unit) load of the terminal device. The communication signal strength information may refer to a frequency at which the terminal device receives a communication signal. The network information may refer to a network type of a network to which the terminal device is connected, for example, a 4G network, a 5G network, and the like.
Step 305, the device status information is sent to the target server.
In some embodiments, the execution main body may send the device status information to the target server through a wired connection or a wireless connection.
As can be seen from fig. 3, compared with the description of some embodiments corresponding to fig. 2, the flow 300 of the cache server performance testing method for the client in some embodiments corresponding to fig. 3 embodies the steps of determining the device state information and sending the device state information to the target server. Therefore, when the target cache server is evaluated according to the test result, the influence of the equipment state on the test result can be considered, and therefore the performance of the target cache server can be evaluated more truly. Furthermore, the cache server is reasonably scheduled to reduce the time for service request.
With further reference to fig. 4, as an implementation of the foregoing method for the foregoing figures, the present disclosure provides some embodiments of a cache server performance testing apparatus for a client, where the apparatus embodiments correspond to those of the method embodiments described above in fig. 2, and the apparatus may be applied to various electronic devices.
As shown in fig. 4, the cache server performance test apparatus 400 for a client according to some embodiments includes: a first sending unit 401, an execution unit 402 and a second sending unit 403. The first sending unit 401 is configured to send a request for obtaining a cache server performance test task to a target server. The execution unit 402 is configured to execute a performance test operation on the target cache server according to the task information of the cache server performance test task returned by the target server, so as to obtain a test result of the performance test operation. A second sending unit 403, configured to send the test result to the target server.
In an optional implementation manner of some embodiments, the apparatus 400 for testing performance of a cache server for a client may further include: a determination unit and a third transmission unit. The determining unit may be configured to determine device state information of a terminal device where the client is located, where the device state information includes at least one of: load information, communication signal strength information, network information. The third transmitting unit may be configured to transmit the device state information to the target server.
In an optional implementation manner of some embodiments, the first sending unit 401 may be further configured to: and responding to the fact that the starting times of the client in the preset time period meet a first preset condition, and sending a request for obtaining a performance test task of the cache server to the target server.
In an optional implementation manner of some embodiments, the task information includes: and the test website is used for caching the server performance test.
In an optional implementation manner of some embodiments, the execution unit 402 may be further configured to: sending a resource acquisition request to the target cache server according to the test website; acquiring response information related to the resource acquisition request, wherein the response information includes at least one of the following items: domain name resolution time, Transmission Control Protocol (TCP) connection time, secure socket protocol (SSL) handshake time, cache server response time, resource transmission speed and request result information.
In an optional implementation manner of some embodiments, the execution unit 402 may be further configured to: and in response to the fact that the starting time of the client side meets a second preset condition, executing the performance test operation on the target cache server according to the task information of the performance test task of the cache server, which is returned by the target server.
In an optional implementation manner of some embodiments, the target cache server may be determined by: and determining the cache server indicated by the domain name resolution result of the test website as the target cache server.
It will be understood that the elements described in the apparatus 400 correspond to various steps in the method described with reference to fig. 2. Thus, the operations, features and resulting advantages described above with respect to the method are also applicable to the apparatus 400 and the units included therein, and will not be described herein again.
Referring now to FIG. 5, a block diagram of an electronic device (e.g., computing device 101 of FIG. 1)500 suitable for use in implementing some embodiments of the present disclosure is shown. The electronic device shown in fig. 5 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present disclosure.
As shown in fig. 5, electronic device 500 may include a processing means (e.g., central processing unit, graphics processor, etc.) 501 that may perform various appropriate actions and processes in accordance with a program stored in a Read Only Memory (ROM)502 or a program loaded from a storage means 508 into a Random Access Memory (RAM) 503. In the RAM 503, various programs and data necessary for the operation of the electronic apparatus 500 are also stored. The processing device 501, the ROM 502, and the RAM 503 are connected to each other through a bus 504. An input/output (I/O) interface 505 is also connected to bus 504.
Generally, the following devices may be connected to the I/O interface 505: input devices 506 including, for example, a touch screen, touch pad, keyboard, mouse, camera, microphone, accelerometer, gyroscope, etc.; output devices 507 including, for example, a Liquid Crystal Display (LCD), speakers, vibrators, and the like; storage devices 508 including, for example, magnetic tape, hard disk, etc.; and a communication device 509. The communication means 509 may allow the electronic device 500 to communicate with other devices wirelessly or by wire to exchange data. While fig. 5 illustrates an electronic device 500 having various means, it is to be understood that not all illustrated means are required to be implemented or provided. More or fewer devices may alternatively be implemented or provided. Each block shown in fig. 5 may represent one device or may represent multiple devices as desired.
In particular, according to some embodiments of the present disclosure, the processes described above with reference to the flow diagrams may be implemented as computer software programs. For example, some embodiments of the present disclosure include a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising program code for performing the method illustrated in the flow chart. In some such embodiments, the computer program may be downloaded and installed from a network via the communication means 509, or installed from the storage means 508, or installed from the ROM 502. The computer program, when executed by the processing device 501, performs the above-described functions defined in the methods of some embodiments of the present disclosure.
It should be noted that the computer readable medium described above in some embodiments of the present disclosure may be a computer readable signal medium or a computer readable storage medium or any combination of the two. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In some embodiments of the disclosure, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In some embodiments of the present disclosure, however, a computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: electrical wires, optical cables, RF (radio frequency), etc., or any suitable combination of the foregoing.
In some embodiments, the clients, servers may communicate using any currently known or future developed network Protocol, such as HTTP (HyperText Transfer Protocol), and may interconnect with any form or medium of digital data communication (e.g., a communications network). Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), the Internet (e.g., the Internet), and peer-to-peer networks (e.g., ad hoc peer-to-peer networks), as well as any currently known or future developed network.
The computer readable medium may be embodied in the apparatus; or may exist separately without being assembled into the electronic device. The computer readable medium carries one or more programs which, when executed by the electronic device, cause the electronic device to: sending a request for acquiring a performance test task of the cache server to a target server; according to the task information of the performance test task of the cache server, which is returned by the target server, performance test operation is executed on the target cache server to obtain a test result of the performance test operation; and sending the test result to the target server.
Computer program code for carrying out operations for embodiments of the present disclosure may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C + +, and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The units described in some embodiments of the present disclosure may be implemented by software, and may also be implemented by hardware. The described units may also be provided in a processor, and may be described as: a processor includes a first sending unit, an execution unit, and a second sending unit. The names of these units do not form a limitation on the units themselves in some cases, for example, the first sending unit may also be described as a "unit sending a request for obtaining a cache server performance test task to a target server".
The functions described herein above may be performed, at least in part, by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: field Programmable Gate Arrays (FPGAs), Application Specific Integrated Circuits (ASICs), Application Specific Standard Products (ASSPs), systems on a chip (SOCs), Complex Programmable Logic Devices (CPLDs), and the like.
The foregoing description is only exemplary of the preferred embodiments of the disclosure and is illustrative of the principles of the technology employed. It will be appreciated by those skilled in the art that the scope of the invention in the embodiments of the present disclosure is not limited to the specific combination of the above-mentioned features, but also encompasses other embodiments in which any combination of the above-mentioned features or their equivalents is made without departing from the inventive concept as defined above. For example, the above features and (but not limited to) technical features with similar functions disclosed in the embodiments of the present disclosure are mutually replaced to form the technical solution.

Claims (10)

1. A performance test method for a cache server of a client comprises the following steps:
sending a request for acquiring a performance test task of the cache server to a target server;
according to the task information of the performance test task of the cache server returned by the target server, performing performance test operation on the target cache server to obtain a test result of the performance test operation;
and sending the test result to the target server.
2. The method of claim 1, wherein the method further comprises:
determining the equipment state information of the terminal equipment where the client is located, wherein the equipment state information comprises at least one of the following items: load information, communication signal strength information, network information;
and sending the equipment state information to the target server.
3. The method of claim 1, wherein sending the request to the target server for the cache server performance testing task comprises:
and responding to the fact that the starting times of the client in the preset time period meet a first preset condition, and sending a request for obtaining a performance test task of the cache server to the target server.
4. The method of claim 1, wherein the task information comprises: and the test website is used for caching the server performance test.
5. The method of claim 4, wherein the performing performance testing operations on the target cache server according to the task information of the cache server performance testing task returned by the target server comprises:
sending a resource acquisition request to the target cache server according to the test website;
acquiring response information related to the resource acquisition request, and using the response information as a test result of a performance test operation, wherein the response information comprises at least one of the following items: domain name resolution time, Transmission Control Protocol (TCP) connection time, secure socket protocol (SSL) handshake time, cache server response time, resource transmission speed and request result information.
6. The method according to one of claims 1 to 5, wherein the performing performance testing operations on the target cache server according to the task information of the cache server performance testing task returned by the target server comprises:
and in response to the fact that the starting time of the client side meets a second preset condition, executing performance test operation on the target cache server according to the task information of the performance test task of the cache server, which is returned by the target server.
7. The method of claim 1, wherein the target cache server is determined by:
and determining the cache server indicated by the domain name resolution result of the test website as the target cache server.
8. A cache server performance testing apparatus for a client, comprising:
the first sending unit is configured to send a request for acquiring a performance test task of the cache server to the target server;
the execution unit is configured to execute performance test operation on the target cache server according to the task information of the performance test task of the cache server, which is returned by the target server, so as to obtain a test result of the performance test operation;
a second sending unit configured to send the test result to the target server.
9. An electronic device, comprising:
one or more processors;
a storage device having one or more programs stored thereon;
when executed by the one or more processors, cause the one or more processors to implement the method of any one of claims 1-7.
10. A computer-readable medium, on which a computer program is stored, wherein the program, when executed by a processor, implements the method of any one of claims 1-7.
CN202011311662.2A 2020-11-20 2020-11-20 Cache server performance test method, device, equipment and medium Active CN112363879B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202011311662.2A CN112363879B (en) 2020-11-20 2020-11-20 Cache server performance test method, device, equipment and medium
PCT/CN2021/128054 WO2022105591A1 (en) 2020-11-20 2021-11-02 Cache server performance test method and apparatus, device, and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011311662.2A CN112363879B (en) 2020-11-20 2020-11-20 Cache server performance test method, device, equipment and medium

Publications (2)

Publication Number Publication Date
CN112363879A true CN112363879A (en) 2021-02-12
CN112363879B CN112363879B (en) 2024-11-01

Family

ID=74533063

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011311662.2A Active CN112363879B (en) 2020-11-20 2020-11-20 Cache server performance test method, device, equipment and medium

Country Status (2)

Country Link
CN (1) CN112363879B (en)
WO (1) WO2022105591A1 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113364808A (en) * 2021-06-30 2021-09-07 北京天融信网络安全技术有限公司 Industrial control firewall testing method, device, equipment and storage medium
CN113592305A (en) * 2021-07-29 2021-11-02 北京百度网讯科技有限公司 Test method, test device, electronic device, and storage medium
WO2022105591A1 (en) * 2020-11-20 2022-05-27 上海连尚网络科技有限公司 Cache server performance test method and apparatus, device, and medium

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115051997B (en) * 2022-07-12 2024-03-19 中国电信股份有限公司 Distributed resource scheduling method and device, storage medium and electronic equipment
CN115277397B (en) * 2022-08-09 2024-08-23 北京有竹居网络技术有限公司 Control method, equipment and storage medium for content server in content distribution network
CN115484200B (en) * 2022-09-21 2024-05-17 北京沃东天骏信息技术有限公司 Buried point testing method, buried point testing device, server, storage medium and buried point testing system
CN117240913B (en) * 2023-11-13 2024-02-13 深圳市鲸视科技有限公司 Proxy communication method, test system, terminal device and storage medium

Citations (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107395464A (en) * 2017-09-11 2017-11-24 北京奇艺世纪科技有限公司 A kind of server test method, apparatus and API gateway
CN107943594A (en) * 2016-10-13 2018-04-20 北京京东尚科信息技术有限公司 Data capture method and device
CN108574604A (en) * 2017-03-07 2018-09-25 北京京东尚科信息技术有限公司 test method and device
CN108959087A (en) * 2018-06-29 2018-12-07 百度在线网络技术(北京)有限公司 test method and device
CN109308266A (en) * 2018-11-30 2019-02-05 北京微播视界科技有限公司 Construction method, test method, device, equipment and the medium of test case
CN109446071A (en) * 2018-09-26 2019-03-08 深圳壹账通智能科技有限公司 Interface test method, interface test device, electronic equipment and storage medium
CN109873732A (en) * 2017-12-05 2019-06-11 北京京东尚科信息技术有限公司 Test method and device for proxy server
CN110457199A (en) * 2018-05-08 2019-11-15 北京京东尚科信息技术有限公司 The method and apparatus of performance test
US20200007656A1 (en) * 2018-06-29 2020-01-02 Baidu Online Network Technology (Beijing) Co., Ltd. Method and apparatus for sending information
CN110851359A (en) * 2019-11-07 2020-02-28 网易(杭州)网络有限公司 Application program testing method and device and server
CN111026645A (en) * 2019-11-20 2020-04-17 航天信息股份有限公司 User interface automatic testing method and device, storage medium and electronic equipment
CN111045911A (en) * 2019-12-19 2020-04-21 京东数字科技控股有限公司 Performance test method, performance test device, storage medium and electronic equipment
US20200133826A1 (en) * 2018-10-30 2020-04-30 International Business Machines Corporation Testing an online system for service oriented architecture (soa) services
CN111555940A (en) * 2020-04-28 2020-08-18 北京字节跳动网络技术有限公司 Client test method and device, electronic equipment and computer readable storage medium

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106487607A (en) * 2015-08-28 2017-03-08 中国电信股份有限公司 A kind of reorientation method based on cache server status and Redirectional system
CN107229575A (en) * 2016-03-23 2017-10-03 上海复旦微电子集团股份有限公司 The appraisal procedure and device of caching performance
CN105955872A (en) * 2016-04-25 2016-09-21 乐视控股(北京)有限公司 Server performance test method and system
CN109062768B (en) * 2018-08-09 2020-09-18 网宿科技股份有限公司 IO performance evaluation method and device of cache server
CN112363879B (en) * 2020-11-20 2024-11-01 上海连尚网络科技有限公司 Cache server performance test method, device, equipment and medium

Patent Citations (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107943594A (en) * 2016-10-13 2018-04-20 北京京东尚科信息技术有限公司 Data capture method and device
CN108574604A (en) * 2017-03-07 2018-09-25 北京京东尚科信息技术有限公司 test method and device
CN107395464A (en) * 2017-09-11 2017-11-24 北京奇艺世纪科技有限公司 A kind of server test method, apparatus and API gateway
CN109873732A (en) * 2017-12-05 2019-06-11 北京京东尚科信息技术有限公司 Test method and device for proxy server
CN110457199A (en) * 2018-05-08 2019-11-15 北京京东尚科信息技术有限公司 The method and apparatus of performance test
CN108959087A (en) * 2018-06-29 2018-12-07 百度在线网络技术(北京)有限公司 test method and device
US20200007656A1 (en) * 2018-06-29 2020-01-02 Baidu Online Network Technology (Beijing) Co., Ltd. Method and apparatus for sending information
CN109446071A (en) * 2018-09-26 2019-03-08 深圳壹账通智能科技有限公司 Interface test method, interface test device, electronic equipment and storage medium
US20200133826A1 (en) * 2018-10-30 2020-04-30 International Business Machines Corporation Testing an online system for service oriented architecture (soa) services
CN109308266A (en) * 2018-11-30 2019-02-05 北京微播视界科技有限公司 Construction method, test method, device, equipment and the medium of test case
CN110851359A (en) * 2019-11-07 2020-02-28 网易(杭州)网络有限公司 Application program testing method and device and server
CN111026645A (en) * 2019-11-20 2020-04-17 航天信息股份有限公司 User interface automatic testing method and device, storage medium and electronic equipment
CN111045911A (en) * 2019-12-19 2020-04-21 京东数字科技控股有限公司 Performance test method, performance test device, storage medium and electronic equipment
CN111555940A (en) * 2020-04-28 2020-08-18 北京字节跳动网络技术有限公司 Client test method and device, electronic equipment and computer readable storage medium

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
李云春;许可;张建华;: "基于PlanetLab平台的校园网DNS服务性能测试方法", 华东师范大学学报(自然科学版), no. 1, 20 March 2015 (2015-03-20), pages 1 - 8 *
黄立群: "电子商务网站建设与管理", 31 January 2005, 东北财经大学出版社, pages: 96 *

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2022105591A1 (en) * 2020-11-20 2022-05-27 上海连尚网络科技有限公司 Cache server performance test method and apparatus, device, and medium
CN113364808A (en) * 2021-06-30 2021-09-07 北京天融信网络安全技术有限公司 Industrial control firewall testing method, device, equipment and storage medium
CN113364808B (en) * 2021-06-30 2022-09-16 北京天融信网络安全技术有限公司 Industrial control firewall testing method, device, equipment and storage medium
CN113592305A (en) * 2021-07-29 2021-11-02 北京百度网讯科技有限公司 Test method, test device, electronic device, and storage medium
CN113592305B (en) * 2021-07-29 2024-08-13 北京百度网讯科技有限公司 Test method, test device, electronic equipment and storage medium

Also Published As

Publication number Publication date
WO2022105591A1 (en) 2022-05-27
CN112363879B (en) 2024-11-01

Similar Documents

Publication Publication Date Title
CN112363879B (en) Cache server performance test method, device, equipment and medium
CN108833251B (en) Method and apparatus for controlling network interconnection
CN112597047A (en) Test method, test device, electronic equipment and computer readable medium
CN111786939B (en) Method, device and system for testing management platform of Internet of things
CN112416632B (en) Event communication method and device, electronic equipment and computer readable medium
CN113760536A (en) Data caching method and device, electronic equipment and computer readable medium
CN107315672B (en) Method and device for monitoring server
CN113094002A (en) Message processing method and device, electronic equipment and computer medium
CN112307071A (en) Monitoring data acquisition method and device, electronic equipment and computer readable medium
CN114465919B (en) Network service testing method, system, electronic equipment and storage medium
CN114115941A (en) Resource sending method, page rendering method, device, electronic equipment and medium
CN113553206A (en) Data event execution method and device, electronic equipment and computer readable medium
CN112543228A (en) Data transmission method and device, electronic equipment and computer readable medium
CN112685156A (en) Task execution method and device, electronic equipment and computer readable medium
CN112163176A (en) Data storage method and device, electronic equipment and computer readable medium
CN112732979A (en) Information writing method, information writing device, electronic equipment and computer readable medium
CN114172946B (en) Request result sending method, device, electronic equipment and computer readable medium
CN113537028B (en) Control method, apparatus, device and medium for face recognition system
CN111404824B (en) Method, apparatus, electronic device, and computer-readable medium for forwarding request
CN115333871B (en) Firewall operation and maintenance method and device, electronic equipment and readable storage medium
CN113535428B (en) Method, device, equipment and medium for processing request message and response message
CN115904921A (en) Service registration information sending method, device, equipment and computer readable medium
CN111371745B (en) Method and apparatus for determining SSRF vulnerability
CN111274150B (en) Service instance access method and device and electronic equipment
CN118784648A (en) Request processing method, apparatus, device, computer readable medium, and program product

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
GR01 Patent grant