[go: up one dir, main page]

CN112363879B - 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
CN112363879B
CN112363879B CN202011311662.2A CN202011311662A CN112363879B CN 112363879 B CN112363879 B CN 112363879B CN 202011311662 A CN202011311662 A CN 202011311662A CN 112363879 B CN112363879 B CN 112363879B
Authority
CN
China
Prior art keywords
cache server
test
target
client
performance test
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.)
Active
Application number
CN202011311662.2A
Other languages
Chinese (zh)
Other versions
CN112363879A (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 Group 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

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 embodiments of the present disclosure disclose a cache server performance test method, apparatus, device and medium. A specific implementation of the method includes: sending a request to a target server to obtain a cache server performance test task; performing 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, and obtaining the test result of the performance test operation; sending the test result to the target server. This implementation can more accurately reflect the network and service conditions of the real users of the client. Furthermore, after scheduling the cache server according to the cache server performance test results, the service request time can be reduced to a certain extent.

Description

缓存服务器性能测试方法、装置、设备和介质Cache server performance testing method, device, equipment and medium

技术领域Technical Field

本公开的实施例涉及计算机技术领域,具体涉及用于客户端的缓存服务器性能测试方法、装置、设备和介质。Embodiments of the present disclosure relate to the field of computer technology, and in particular to a cache server performance testing method, apparatus, device, and medium for a client.

背景技术Background Art

缓存服务器性能测试,是指通过一定的技术手段确定缓存服务器的性能的一种方法。目前,在对缓存服务器进行性能测试时,通常采用的方式为:通过第三方缓存服务器性能测试平台实现对缓存服务器性能的测试。Cache server performance testing refers to a method of determining the performance of a cache server through certain technical means. At present, when performing performance testing on a cache server, the method usually adopted is: testing the performance of the cache server through a third-party cache server performance testing platform.

然而,当采用上述方式进行缓存服务器性能测试时,经常会存在如下技术问题:However, when using the above method to test cache server performance, the following technical problems often occur:

现有方法较少从客户端的角度出发对缓存服务器的性能进行测试,使得缓存服务器性能测试结果较难准确的反映客户端的真实用户的网络和服务情况,进而导致在根据缓存服务器性能测试结果对缓存服务器进行调度后,难以减少服务请求的时间。Existing methods rarely test the performance of cache servers from the client's perspective, making it difficult for cache server performance test results to accurately reflect the network and service conditions of the client's real users, which in turn makes it difficult to reduce the time of service requests after scheduling the cache server according to the cache server performance test results.

发明内容Summary of the invention

本公开的内容部分用于以简要的形式介绍构思,这些构思将在后面的具体实施方式部分被详细描述。本公开的内容部分并不旨在标识要求保护的技术方案的关键特征或必要特征,也不旨在用于限制所要求的保护的技术方案的范围。The content of this disclosure is used to introduce concepts in a brief form, which will be described in detail in the detailed implementation section below. The content of this disclosure is not intended to identify the key features or essential features of the technical solution claimed for protection, nor is it intended to limit the scope of the technical solution claimed for protection.

本公开的一些实施例提出了一种用于客户端的缓存服务器性能测试方法、装置、设备和介质,来解决以上背景技术部分提到的技术问题中的一项或多项。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 above background technology section.

第一方面,本公开的一些实施例提供了一种用于客户端的缓存服务器性能测试方法,该方法包括:向目标服务器发送获取缓存服务器性能测试任务的请求;根据上述目标服务器返回的、上述缓存服务器性能测试任务的任务信息,对目标缓存服务器执行性能测试操作,得到上述性能测试操作的测试结果;将上述测试结果发送至上述目标服务器。In a first aspect, some embodiments of the present disclosure provide a cache server performance testing method for a client, the method comprising: sending a request to a target server to obtain a cache server performance testing task; performing a performance testing operation on the target cache server based on task information of the cache server performance testing task returned by the target server, and obtaining a test result of the performance testing operation; and sending the test result to the target server.

第二方面,本公开的一些实施例提供了一种用于客户端的缓存服务器性能测试的装置,该装置包括:第一发送单元,被配置成向目标服务器发送获取缓存服务器性能测试任务的请求;执行单元,被配置成根据上述目标服务器返回的、上述缓存服务器性能测试任务的任务信息,对目标缓存服务器执行性能测试操作,得到上述性能测试操作的测试结果;第二发送单元,被配置成将上述测试结果发送至上述目标服务器。In a second aspect, some embodiments of the present disclosure provide a device for cache server performance testing of a client, the device comprising: a first sending unit, configured to send a request for obtaining a cache server performance testing task to a target server; an execution unit, configured to perform a performance testing operation on the target cache server according to task information of the cache server performance testing task returned by the target server, and obtain a test result of the performance testing operation; and 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 on which one or more programs are stored, and when the one or more programs are executed by the one or more processors, the one or more processors implement the method described in any implementation manner of the above-mentioned first aspect.

第四方面,本公开的一些实施例提供了一种计算机可读介质,其上存储有计算机程序,其中,程序被处理器执行时实现上述第一方面任一实现方式所描述的方法。In a fourth aspect, some embodiments of the present disclosure provide a computer-readable medium having a computer program stored thereon, wherein when the program is executed by a processor, the method described in any implementation manner of the above-mentioned first aspect is implemented.

本公开的上述各个实施例具有如下有益效果:通过本公开的一些实施例的用于客户端的缓存服务器性能测试方法,能够较为准确的反映客户端的真实用户的网络和服务情况。具体来说,造成相关的缓存服务器性能测试方法难以较为准确的反映客户端的真实用户的网络和服务情况的原因在于:现有方法较少从客户端的角度出发对缓存服务器的性能进行测试。基于此,本公开的一些实施例的用于客户端的缓存服务器性能测试方法从客户端的角度出发,通过客户端主动的获取缓存服务器性能测试任务并且执行相应的测试操作。不依赖于第三方测试平台,测试过程完全依赖于客户端自身,使得测试结果能够反映客户端的真实测试数据。从而,能够较为准确的反映客户端的真实用户的网络和服务情况。进而,使得根据缓存服务器性能测试结果对缓存服务器进行调度后,能够在一定程度上降低服务请求的时间。The above-mentioned various embodiments of the present disclosure have the following beneficial effects: through the cache server performance testing method for the client of some embodiments of the present disclosure, the network and service conditions of the real users of the client can be reflected more accurately. Specifically, the reason why the relevant cache server performance testing method is difficult to more accurately reflect the network and service conditions of the real users of the client is that the existing methods rarely test the performance of the cache server from the perspective of the client. Based on this, the cache server performance testing method for the client of some embodiments of the present disclosure starts from the perspective of the client, and the client actively obtains the cache server performance test task and performs the corresponding test operation. It does not rely on a third-party test platform, and the test process completely relies on the client itself, so that the test results can reflect the real test data of the client. Therefore, it can more accurately reflect the network and service conditions of the real users of the client. Furthermore, after scheduling the cache server according to the cache server performance test results, the service request time can be reduced to a certain extent.

附图说明BRIEF DESCRIPTION OF THE DRAWINGS

结合附图并参考以下具体实施方式,本公开各实施例的上述和其他特征、优点及方面将变得更加明显。贯穿附图中,相同或相似的附图标记表示相同或相似的元素。应当理解附图是示意性的,元件和元素不一定按照比例绘制。The above and other features, advantages and aspects of the embodiments of the present disclosure will become more apparent with reference to the following detailed description in conjunction with the accompanying drawings. Throughout the accompanying drawings, the same or similar reference numerals represent the same or similar elements. It should be understood that the drawings are schematic and that components and elements are not necessarily drawn to scale.

图1是根据本公开的一些实施例的用于客户端的缓存服务器性能测试方法的一个应用场景的示意图;FIG1 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;

图2是根据本公开的用于客户端的缓存服务器性能测试方法的一些实施例的流程图;FIG2 is a flow chart of some embodiments of a cache server performance testing method for a client according to the present disclosure;

图3是根据本公开的用于客户端的缓存服务器性能测试方法的另一些实施例的流程图;FIG3 is a flow chart of other embodiments of a cache server performance testing method for a client according to the present disclosure;

图4是根据本公开的用于客户端的缓存服务器性能测试装置的一些实施例的结构示意图;FIG4 is a schematic diagram of the structure of some embodiments of a cache server performance testing device for a client according to the present disclosure;

图5是适于用来实现本公开的一些实施例的电子设备的结构示意图。FIG. 5 is a schematic diagram of the structure of an electronic device suitable for 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. Although certain embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be construed as being limited to the embodiments set forth herein. On the contrary, these embodiments are provided to provide a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the present disclosure are only for exemplary purposes and are not intended to limit the scope of protection of the present disclosure.

另外还需要说明的是,为了便于描述,附图中仅示出了与有关发明相关的部分。在不冲突的情况下,本公开中的实施例及实施例中的特征可以相互组合。It should also be noted that, for ease of description, only the parts related to the invention are shown in the drawings. In the absence of conflict, the embodiments and features in the embodiments of the present disclosure can be combined with each other.

需要注意,本公开中提及的“第一”、“第二”等概念仅用于对不同的装置、模块或单元进行区分,并非用于限定这些装置、模块或单元所执行的功能的顺序或者相互依存关系。It should be noted that the concepts such as "first" and "second" mentioned in the present disclosure are only used to distinguish different devices, modules or units, and are not used to limit the order or interdependence of the functions performed by these devices, modules or units.

需要注意,本公开中提及的“一个”、“多个”的修饰是示意性而非限制性的,本领域技术人员应当理解,除非在上下文另有明确指出,否则应该理解为“一个或多个”。It should be noted that the modifications of "one" and "plurality" mentioned in the present disclosure are illustrative rather than restrictive, and those skilled in the art should understand that unless otherwise clearly indicated in the context, it should be understood as "one or more".

本公开实施方式中的多个装置之间所交互的消息或者信息的名称仅用于说明性的目的,而并不是用于对这些消息或信息的范围进行限制。The names of the messages or information exchanged between multiple devices in the embodiments of the present disclosure are only used for illustrative purposes and are not used to limit the scope of these messages or information.

下面将参考附图并结合实施例来详细说明本公开。The present disclosure will be described in detail below with reference to the accompanying drawings and in conjunction with embodiments.

图1是根据本公开一些实施例的用于客户端的缓存服务器性能测试方法的一个应用场景的示意图。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.

在图1的应用场景中,首先,计算设备101可以向目标服务器102发送获取缓存服务器性能测试任务的请求103。接着,计算设备101可以根据上述目标服务器102返回的、上述缓存服务器性能测试任务的任务信息104,对目标缓存服务器执行性能测试操作105,得到上述性能测试操作105的测试结果106。最后,计算设备101可以将上述测试结果106发送至上述目标服务器102。In the application scenario of FIG1 , first, the computing device 101 may send a request 103 for obtaining a cache server performance test task to the target server 102. Next, the computing device 101 may perform 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, and obtain a test result 106 of the performance test operation 105. Finally, the computing device 101 may send the test result 106 to the target server 102.

需要说明的是,上述计算设备101可以是硬件,也可以是软件。当计算设备为硬件时,可以实现成多个服务器或终端设备组成的分布式集群,也可以实现成单个服务器或单个终端设备。当计算设备体现为软件时,可以安装在上述所列举的硬件设备中。其可以实现成例如用来提供分布式服务的多个软件和软件模块,也可以是实现成单个软件或软件模块。在此不做具体限定。It should be noted that the computing device 101 can be hardware or software. When the computing device is hardware, it can be implemented as a distributed cluster consisting of multiple servers or terminal devices, or it can be implemented as a single server or a single terminal device. When the computing device is embodied as software, it can be installed in the hardware devices listed above. It can be implemented as multiple software and software modules for providing distributed services, for example, or it can be implemented as a single software or software module. No specific limitation is made here.

应该理解,图1中的计算设备数目仅仅是示意性的。根据实现需要,可以具有任意数目的计算设备。It should be understood that the number of computing devices in FIG1 is merely illustrative and any number of computing devices may be provided according to implementation requirements.

继续参考图2,示出了根据本公开的用于客户端的缓存服务器性能测试方法的一些实施例的流程200。该用于客户端的缓存服务器性能测试方法,包括以下步骤:2, a process 200 of some embodiments of the cache server performance testing method for a client according to the present disclosure is shown. The cache server performance testing method for a client includes the following steps:

步骤201,向目标服务器发送获取缓存服务器性能测试任务的请求。Step 201: Send a request for obtaining a cache server performance test task to a target server.

在一些实施例中,用于客户端的缓存服务器性能测试方法的执行主体(如图1所示的计算设备101)可以通过有线连接方式或者无线连接方式向目标服务器发送获取缓存服务器性能测试任务的请求。其中,上述目标服务器可以是向上述客户端提供客户端应用程序可调用的方法的服务器。上述缓存服务器性能测试任务的请求可以包括:目标服务器IP地址(Internet Protocol Address,互联网协议地址),客户端唯一标识码。上述目标服务器IP地址可以用于指示上述目标服务器的位置。上述执行主体可以根据上述目标服务器IP地址,向上述目标服务器发送上述获取缓存服务器性能测试任务的请求。上述客户端唯一标识码可以用于唯一标识上述客户端。上述目标服务器可以根据上述客户端唯一标识码确定是否需要向对应的客户端发送缓存服务器性能测试任务的任务信息。可以理解,通过这种方式,上述目标服务器需要预先确定需要接收缓存服务器性能测试任务的任务信息的客户端的客户端唯一标识码。In some embodiments, the execution subject of the cache server performance test method for the client (the computing device 101 as shown in FIG. 1 ) can send a request for obtaining a cache server performance test task to the target server through a wired connection or a wireless connection. Among them, the above-mentioned target server can be a server that provides the above-mentioned client with a method that can be called by the client application. The request for the above-mentioned cache server performance test task may include: the target server IP address (Internet Protocol Address), the client unique identification code. The above-mentioned target server IP address can be used to indicate the location of the above-mentioned target server. The above-mentioned execution subject can send the above-mentioned request for obtaining the cache server performance test task to the above-mentioned target server according to the above-mentioned target server IP address. The above-mentioned client unique identification code can be used to uniquely identify the above-mentioned client. The above-mentioned target server can determine whether it is necessary to send the task information of the cache server performance test task to the corresponding client according to the above-mentioned client unique identification code. It can be understood that in this way, the above-mentioned target server needs to predetermine the client unique identification code of the client that needs to receive the task information of the cache server performance test task.

在一些实施例的一些可选的实现方式中,上述执行主体可以响应于确定在预设时间段内的客户端启动次数满足第一预设条件,向目标服务器发送获取缓存服务器性能测试任务的请求。其中,上述预设时间段的终止时间点可以是当前时间点。上述预设时间段的终止时间点还可以是当日23时59分59秒。上述第一预设条件可以是客户端启动次数小于等于预设启动次数。上述获取缓存服务器性能测试任务的请求可以包括:目标服务器主机名,客户端登录用户唯一标识码。上述目标服务器主机名可以用于唯一标识一台服务器。客户端登录用户唯一标识码可以用于唯一标识登录上述客户端的用户。上述目标服务器可以根据上述客户端登录用户唯一标识码确定是否需要向对应的客户端发送缓存服务器性能测试任务的任务信息。可以理解,通过这种方式,上述目标服务器需要预先确定需要接收上述任务信息的客户端的客户端登录用户唯一标识码。In some optional implementations of some embodiments, the execution subject may send a request to the target server to obtain a cache server performance test task in response to determining that the number of client startups within a preset time period meets the first preset condition. The end time point of the preset time period may be the current time point. The end time point of the preset time period may also be 23:59:59 on the same day. The first preset condition may be that the number of client startups is less than or equal to the preset number of startups. The request to obtain the cache server performance test task may include: the target server host name, the client login user unique identification code. The target server host name may be used to uniquely identify a server. The client login user unique identification code may be used to uniquely identify the user who logs in to the client. The target server may determine whether it is necessary to send the task information of the cache server performance test task to the corresponding client based on the client login user unique identification code. It can be understood that in this way, the target server needs to predetermine the client login user unique identification code of the client that needs to receive the task information.

在上述实现方式中,增加了向目标服务器发送获取缓存服务器性能测试任务的请求的时机,与实际应用场景匹配程度更高,适用性更强。可以避免频繁的向目标服务器发送请求对客户端所在的终端设备的内存资源以及网络资源等的消耗。In the above implementation, the timing of sending a request to the target server to obtain the cache server performance test task is increased, which is more compatible with the actual application scenario and more applicable. It can avoid the consumption of memory resources and network resources of the terminal device where the client is located by frequently sending requests to the target server.

作为示例,上述预设时间段可以是24小时。上述预设时间段的终止时间点可以是当日23时59分59秒。上述预设启动次数可以是2次。As an example, the preset time period may be 24 hours. The end time point of the preset time period may be 23:59:59 on the same day. The preset number of starts may be 2 times.

步骤202,根据目标服务器返回的、缓存服务器性能测试任务的任务信息,对目标缓存服务器执行性能测试操作,得到性能测试操作的测试结果。Step 202: Perform 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, and obtain a test result of the performance test operation.

在一些实施例中,上述任务信息可以包括:用于缓存服务器性能测试的测试网址集合。上述执行主体根据上述目标服务器返回的、上述缓存服务器性能测试任务的任务信息,对目标缓存服务器执行性能测试操作,得到上述性能测试操作的测试结果,可以包括以下步骤:In some embodiments, the task information may include: a set of test websites for cache server performance testing. The execution subject performs 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 to obtain the test result of the performance test operation, which may include the following steps:

第一步,根据上述测试网址集合中的每个测试网址,向上述目标缓存服务器发送资源获取请求。The first step is to send a resource acquisition request to the target cache server according to each test URL in the test URL set.

第二步,获取与上述测试网址集合中每个测试网址对应的资源获取请求相关的缓存服务器响应时间,得到缓存服务器响应时间集合。其中,上述缓存服务器响应时间可以指向上述目标缓存服务器发送资源获取请求的时间点与接收到上述目标缓存服务器返回的资源的时间点之间的时间间隔。The second step is to obtain the cache server response time associated with the resource acquisition request corresponding to each test URL in the test URL set, and obtain a cache server response time set. The cache server response time may refer to the time interval between the time when the target cache server sends the resource acquisition request and the time when the target cache server receives the resource returned.

第三步,确定上述缓存服务器响应时间集合中各个缓存服务器响应时间的平均值,得到缓存服务器平均响应时间,将上述缓存服务器平均响应时间作为性能测试操作的测试结果。The third step is to determine the average value of the response time of each cache server in the above cache server response time set to obtain the average response time of the cache servers, and use the above 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: a test website for cache server performance testing. The execution subject performs 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, which may include the following steps:

第一步,根据上述测试网址,向上述目标缓存服务器发送资源获取请求。The first step is to send a resource acquisition request to the target cache server according to the test URL.

第二步,获取与上述资源获取请求相关的响应信息,将上述响应信息作为性能测试操作的测试结果,其中,上述响应信息可以包括以下至少一项:域名解析时间,传输控制协议TCP连接时间,安全套接字协议SSL握手时间,缓存服务器响应时间,资源传输速度,请求结果信息。其中,上述请求结果信息可以是表征资源是否获取成功的信息。The second step is to obtain response information related to the resource acquisition request, and use the response information as the test result of the performance test operation, wherein 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 be information indicating whether the resource is successfully acquired.

在一些实施例的一些可选的实现方式中,上述执行主体可以响应于确定客户端启动时间满足第二预设条件,根据上述目标服务器返回的、上述缓存服务器性能测试任务的任务信息,对目标缓存服务器执行上述缓存服务器的性能测试操作。其中,上述第二预设条件可以是客户端启动时间小于预设启动时间。In some optional implementations of some embodiments, the execution subject may, in response to determining that the client startup time satisfies a second preset condition, perform the cache server 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. The second preset condition may be that the client startup time is less than the preset startup time.

在上述实现方式中,增加了对目标缓存服务器执行上述缓存服务器的性能测试操作的时机的描述,客户端启动时间可以在一定程度上反映客户端所在的终端设备的卡顿程度,启动时间越短,表明终端设备的卡顿程度越低,通过第二预设条件,可以在终端设备卡顿程度较低的情况下进行上述缓存服务器的性能测试操作,减少终端设备自身状态对测试操作结果的影响。与实际应用场景匹配程度更高,适用性更强。In the above implementation, a description of the timing of the target cache server performing the performance test operation of the cache server is added. The client startup time can reflect the jamming degree of the terminal device where the client is located to a certain extent. The shorter the startup time, the lower the jamming degree of the terminal device. Through the second preset condition, the performance test operation of the cache server can be performed when the jamming degree of the terminal device is low, reducing the impact of the terminal device's own state on the test operation results. It has a higher degree of matching with actual application scenarios and is more applicable.

在一些实施例的一些可选的实现方式中,上述目标缓存服务器可以通过以下步骤确定:将上述测试网址的域名解析结果所指示的缓存服务器确定为上述目标缓存服务器。其中,上述域名解析结果可以是IP地址。In some optional implementations of some embodiments, the target cache server may be determined by the following steps: determining the cache server indicated by the domain name resolution result of the test website as the target cache server, wherein the domain name resolution result may be an IP address.

步骤203,将测试结果发送至目标服务器。Step 203: Send the test result to the target server.

在一些实施例中,上述执行主体可以通过有线连接方式或者无线连接方式将上述性能测试操作的测试结果发送至上述目标服务器。In some embodiments, the execution entity may send the test result of the performance test operation to the target server via a wired connection or a wireless connection.

本公开的上述各个实施例具有如下有益效果:通过本公开的一些实施例的用于客户端的缓存服务器性能测试方法,能够较为准确的反映客户端的真实用户的网络和服务情况。具体来说,造成相关的缓存服务器性能测试方法难以较为准确的反映客户端的真实用户的网络和服务情况的原因在于:现有方法较少从客户端的角度出发对缓存服务器的性能进行测试。基于此,本公开的一些实施例的用于客户端的缓存服务器性能测试方法从客户端的角度出发,通过客户端主动的获取缓存服务器性能测试任务并且执行相应的测试操作。不依赖于第三方测试平台,测试过程完全依赖于客户端自身,使得测试结果能够反映客户端的真实测试数据。从而,能够较为准确的反映客户端的真实用户的网络和服务情况。进而,使得根据缓存服务器性能测试结果对缓存服务器进行调度后,能够在一定程度上降低服务请求的时间。The above-mentioned various embodiments of the present disclosure have the following beneficial effects: through the cache server performance testing method for the client of some embodiments of the present disclosure, the network and service conditions of the real users of the client can be reflected more accurately. Specifically, the reason why the relevant cache server performance testing method is difficult to more accurately reflect the network and service conditions of the real users of the client is that the existing methods rarely test the performance of the cache server from the perspective of the client. Based on this, the cache server performance testing method for the client of some embodiments of the present disclosure starts from the perspective of the client, and the client actively obtains the cache server performance test task and performs the corresponding test operation. It does not rely on a third-party test platform, and the test process completely relies on the client itself, so that the test results can reflect the real test data of the client. Therefore, it can more accurately reflect the network and service conditions of the real users of the client. Furthermore, after scheduling the cache server according to the cache server performance test results, the service request time can be reduced to a certain extent.

进一步参考图3,其示出了用于客户端的缓存服务器性能测试方法的另一些实施例的流程300。该用于客户端的缓存服务器性能测试方法的流程300,包括以下步骤:Further referring to Fig. 3, it shows a process 300 of another embodiment of a cache server performance testing method for a client. The process 300 of the cache server performance testing method for a client comprises the following steps:

步骤301,向目标服务器发送获取缓存服务器性能测试任务的请求。Step 301: Send a request to a target server to obtain a cache server performance test task.

步骤302,根据目标服务器返回的、缓存服务器性能测试任务的任务信息,对目标缓存服务器执行性能测试操作,得到性能测试操作的测试结果。Step 302: Perform 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 to obtain a test result of the performance test operation.

步骤303,将测试结果发送至目标服务器。Step 303: Send the test result to the target server.

在一些实施例中,步骤301-303的具体实现及其所带来的技术效果可以参考图2对应的实施例中的步骤201-203,在此不再赘述。In some embodiments, the specific implementation of steps 301-303 and the technical effects brought about by them can refer to steps 201-203 in the embodiment corresponding to Figure 2, and will not be repeated here.

步骤304,确定客户端所在的终端设备的设备状态信息。Step 304: determine the device status information of the terminal device where the client is located.

在一些实施例中,上述执行主体可以确定上述客户端所在的终端设备的设备状态信息。其中,上述设备状态信息可以包括但不限于以下至少一项:负载信息,通信信号强度信息,网络信息。其中,上述负载信息可以是上述终端设备的CPU(Central ProcessingUnit,中央处理器)负载。上述通信信号强度信息可以指上述终端设备接收通信信号的频率。上述网络信息可以指上述终端设备所接入的网络的网络类型,例如,4G网络,5G网络等等。In some embodiments, the execution entity may determine the device status information of the terminal device where the client is located. The device status information may include but is not limited to at least one of the following: load information, communication signal strength information, and network information. The load information may be the CPU (Central Processing Unit) load of the terminal device. The communication signal strength information may refer to the frequency at which the terminal device receives the communication signal. The network information may refer to the network type of the network to which the terminal device is connected, for example, a 4G network, a 5G network, and the like.

步骤305,将设备状态信息发送至目标服务器。Step 305: Send the device status information to the target server.

在一些实施例中,上述执行主体可以通过有线连接方式或者无线连接方式将上述设备状态信息发送至上述目标服务器。In some embodiments, the execution entity may send the device status information to the target server via a wired connection or a wireless connection.

从图3中可以看出,与图2对应的一些实施例的描述相比,图3对应的一些实施例中的用于客户端的缓存服务器性能测试方法的流程300体现了确定设备状态信息以及向目标服务器发送设备状态信息的步骤。从而,可以使得目标服务器根据测试结果对目标缓存服务器进行评估时,能够顾及到设备状态对上述测试结果的影响,从而,可以更为真实的对目标缓存服务器的性能进行评估。进而,合理的对缓存服务器进行调度以降低服务请求的时间。As can be seen from FIG. 3, compared with the description of some embodiments corresponding to FIG. 2, the process 300 of the cache server performance test method for the client in some embodiments corresponding to FIG. 3 embodies the steps of determining device status information and sending the device status information to the target server. Thus, when the target server evaluates the target cache server according to the test results, it can take into account the impact of the device status on the above test results, thereby more realistically evaluating the performance of the target cache server. Furthermore, the cache server can be reasonably scheduled to reduce the time of service requests.

进一步参考图4,作为对上述各图上述方法的实现,本公开提供了一种用于客户端的缓存服务器性能测试装置的一些实施例,这些装置实施例与图2上述的那些方法实施例相对应,该装置具体可以应用与各种电子设备中。Further referring to FIG. 4 , as an implementation of the above methods in the above figures, the present disclosure provides some embodiments of a cache server performance testing device for a client, and these device embodiments correspond to the method embodiments described above in FIG. 2 , and the device can be specifically applied in various electronic devices.

如图4所示,一些实施例的用于客户端的缓存服务器性能测试装置400包括:第一发送单元401、执行单元402和第二发送单元403。其中,第一发送单元401,被配置成向目标服务器发送获取缓存服务器性能测试任务的请求。执行单元402,被配置成根据上述目标服务器返回的、上述缓存服务器性能测试任务的任务信息,对目标缓存服务器执行性能测试操作,得到上述性能测试操作的测试结果。第二发送单元403,被配置成将上述测试结果发送至上述目标服务器。As shown in FIG4 , a cache server performance test device 400 for a client in 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 perform 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, and obtain a test result of the performance test operation. The second sending unit 403 is configured to send the test result to the target server.

在一些实施例的可选实现方式中,上述用于客户端的缓存服务器性能测试装置400还可以包括:确定单元和第三发送单元。其中,确定单元可以被配置成确定上述客户端所在的终端设备的设备状态信息,其中,上述设备状态信息包括以下至少一项:负载信息,通信信号强度信息,网络信息。第三发送单元可以被配置成将上述设备状态信息发送至上述目标服务器。In an optional implementation of some embodiments, the cache server performance test device 400 for a client may further include: a determination unit and a third sending unit. The determination unit may be configured to determine device status information of a terminal device where the client is located, wherein the device status information includes at least one of the following: load information, communication signal strength information, and network information. The third sending unit may be configured to send the device status information to the target server.

在一些实施例的可选实现方式中,上述第一发送单元401还可以被配置成:响应于确定在预设时间段内的客户端启动次数满足第一预设条件,向目标服务器发送获取缓存服务器性能测试任务的请求。In an optional implementation of some embodiments, the first sending unit 401 may also be configured to: in response to determining that the number of client startups within a preset time period satisfies a first preset condition, send a request to the target server to obtain a cache server performance test task.

在一些实施例的可选实现方式中,上述任务信息包括:用于缓存服务器性能测试的测试网址。In an optional implementation of some embodiments, the above-mentioned task information includes: a test website address used for cache server performance testing.

在一些实施例的可选实现方式中,上述执行单元402还可以被配置成:根据上述测试网址,向上述目标缓存服务器发送资源获取请求;获取与上述资源获取请求相关的响应信息,其中,上述响应信息包括以下至少一项:域名解析时间,传输控制协议TCP连接时间,安全套接字协议SSL握手时间,缓存服务器响应时间,资源传输速度,请求结果信息。In an optional implementation of some embodiments, the execution unit 402 may also be configured to: send a resource acquisition request to the target cache server according to the test URL; obtain response information related to the resource acquisition request, wherein the response information includes 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.

在一些实施例的可选实现方式中,上述执行单元402还可以进一步被配置成:响应于确定客户端启动时间满足第二预设条件,根据上述目标服务器返回的、上述缓存服务器性能测试任务的任务信息,对目标缓存服务器执行上述性能测试操作。In an optional implementation of some embodiments, the execution unit 402 may be further configured to: in response to determining that the client startup time satisfies a second preset condition, perform the 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.

在一些实施例的可选实现方式中,上述目标缓存服务器可以是通过以下步骤确定的:将上述测试网址的域名解析结果所指示的缓存服务器确定为上述目标缓存服务器。In an optional implementation manner of some embodiments, the target cache server may be determined by the following steps: determining the cache server indicated by the domain name resolution result of the test URL as the target cache server.

可以理解的是,该装置400中记载的诸单元与参考图2描述的方法中的各个步骤相对应。由此,上文针对方法描述的操作、特征以及产生的有益效果同样适用于装置400及其中包含的单元,在此不再赘述。It is understandable that the units recorded in the device 400 correspond to the steps in the method described with reference to Figure 2. Therefore, the operations, features and beneficial effects described above for the method are also applicable to the device 400 and the units contained therein, and will not be repeated here.

下面参考图5,其示出了适于用来实现本公开的一些实施例的电子设备(例如图1中的计算设备101)500的结构示意图。图5示出的电子设备仅仅是一个示例,不应对本公开的实施例的功能和使用范围带来任何限制。Referring to FIG5, a schematic diagram of an electronic device (such as the computing device 101 in FIG1) 500 suitable for implementing some embodiments of the present disclosure is shown. The electronic device shown in FIG5 is only an example and should not limit the functions and scope of use of the embodiments of the present disclosure.

如图5所示,电子设备500可以包括处理装置(例如中央处理器、图形处理器等)501,其可以根据存储在只读存储器(ROM)502中的程序或者从存储装置508加载到随机访问存储器(RAM)503中的程序而执行各种适当的动作和处理。在RAM 503中,还存储有电子设备500操作所需的各种程序和数据。处理装置501、ROM 502以及RAM 503通过总线504彼此相连。输入/输出(I/O)接口505也连接至总线504。As shown in FIG5 , the electronic device 500 may include a processing device (e.g., a central processing unit, a graphics processing unit, etc.) 501, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 502 or a program loaded from a storage device 508 into a random access memory (RAM) 503. In the RAM 503, various programs and data required for the operation of the electronic device 500 are also stored. The processing device 501, the ROM 502, and the RAM 503 are connected to each other via a bus 504. An input/output (I/O) interface 505 is also connected to the bus 504.

通常,以下装置可以连接至I/O接口505:包括例如触摸屏、触摸板、键盘、鼠标、摄像头、麦克风、加速度计、陀螺仪等的输入装置506;包括例如液晶显示器(LCD)、扬声器、振动器等的输出装置507;包括例如磁带、硬盘等的存储装置508;以及通信装置509。通信装置509可以允许电子设备500与其他设备进行无线或有线通信以交换数据。虽然图5示出了具有各种装置的电子设备500,但是应理解的是,并不要求实施或具备所有示出的装置。可以替代地实施或具备更多或更少的装置。图5中示出的每个方框可以代表一个装置,也可以根据需要代表多个装置。Typically, the following devices may be connected to the I/O interface 505: input devices 506 including, for example, a touch screen, a touchpad, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, etc.; output devices 507 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; storage devices 508 including, for example, a magnetic tape, a hard disk, etc.; and communication devices 509. The communication device 509 may allow the electronic device 500 to communicate with other devices wirelessly or by wire to exchange data. Although FIG. 5 shows an electronic device 500 with various devices, it should be understood that it is not required to implement or have all the devices shown. More or fewer devices may be implemented or have alternatively. Each box shown in FIG. 5 may represent one device, or may represent multiple devices as needed.

特别地,根据本公开的一些实施例,上文参考流程图描述的过程可以被实现为计算机软件程序。例如,本公开的一些实施例包括一种计算机程序产品,其包括承载在计算机可读介质上的计算机程序,该计算机程序包含用于执行流程图所示的方法的程序代码。在这样的一些实施例中,该计算机程序可以通过通信装置509从网络上被下载和安装,或者从存储装置508被安装,或者从ROM 502被安装。在该计算机程序被处理装置501执行时,执行本公开的一些实施例的方法中限定的上述功能。In particular, according to some embodiments of the present disclosure, the process described above with reference to the flowchart can be implemented as a computer software program. For example, some embodiments of the present disclosure include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In some such embodiments, the computer program can be downloaded and installed from the network through the communication device 509, or installed from the storage device 508, or installed from the ROM 502. When the computer program is executed by the processing device 501, the above-mentioned functions defined in the method of some embodiments of the present disclosure are executed.

需要说明的是,本公开的一些实施例上述的计算机可读介质可以是计算机可读信号介质或者计算机可读存储介质或者是上述两者的任意组合。计算机可读存储介质例如可以是——但不限于——电、磁、光、电磁、红外线、或半导体的系统、装置或器件,或者任意以上的组合。计算机可读存储介质的更具体的例子可以包括但不限于:具有一个或多个导线的电连接、便携式计算机磁盘、硬盘、随机访问存储器(RAM)、只读存储器(ROM)、可擦式可编程只读存储器(EPROM或闪存)、光纤、便携式紧凑磁盘只读存储器(CD-ROM)、光存储器件、磁存储器件、或者上述的任意合适的组合。在本公开的一些实施例中,计算机可读存储介质可以是任何包含或存储程序的有形介质,该程序可以被指令执行系统、装置或者器件使用或者与其结合使用。而在本公开的一些实施例中,计算机可读信号介质可以包括在基带中或者作为载波一部分传播的数据信号,其中承载了计算机可读的程序代码。这种传播的数据信号可以采用多种形式,包括但不限于电磁信号、光信号或上述的任意合适的组合。计算机可读信号介质还可以是计算机可读存储介质以外的任何计算机可读介质,该计算机可读信号介质可以发送、传播或者传输用于由指令执行系统、装置或者器件使用或者与其结合使用的程序。计算机可读介质上包含的程序代码可以用任何适当的介质传输,包括但不限于:电线、光缆、RF(射频)等等,或者上述的任意合适的组合。It should be noted that the computer-readable medium 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. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, 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 disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In some embodiments of the present disclosure, the computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, device or device. In some embodiments of the present disclosure, the computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, in which a computer-readable program code is carried. This propagated data signal may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. The computer readable signal medium may also be any computer readable medium other than a computer readable storage medium, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer readable medium may be transmitted using any suitable medium, including but not limited to: wires, optical cables, RF (radio frequency), etc., or any suitable combination of the above.

在一些实施方式中,客户端、服务器可以利用诸如HTTP(HyperText TransferProtocol,超文本传输协议)之类的任何当前已知或未来研发的网络协议进行通信,并且可以与任意形式或介质的数字数据通信(例如,通信网络)互连。通信网络的示例包括局域网(“LAN”),广域网(“WAN”),网际网(例如,互联网)以及端对端网络(例如,ad hoc端对端网络),以及任何当前已知或未来研发的网络。In some embodiments, the client and the server may communicate using any currently known or future developed network protocol such as HTTP (HyperText Transfer Protocol), and may be interconnected with any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), an internet (e.g., the Internet), and a peer-to-peer network (e.g., an ad hoc peer-to-peer network), as well as any currently known or future developed network.

上述计算机可读介质可以是上述装置中所包含的;也可以是单独存在,而未装配入该电子设备中。上述计算机可读介质承载有一个或者多个程序,当上述一个或者多个程序被该电子设备执行时,使得该电子设备:向目标服务器发送获取缓存服务器性能测试任务的请求;根据上述目标服务器返回的、上述缓存服务器性能测试任务的任务信息,对目标缓存服务器执行性能测试操作,得到上述性能测试操作的测试结果;将上述测试结果发送至上述目标服务器。The computer-readable medium may be included in the device; or it may exist independently without being installed in the electronic device. The computer-readable medium carries one or more programs. When the one or more programs are executed by the electronic device, the electronic device: sends a request to obtain a cache server performance test task to the target server; performs 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, and obtains the test result of the performance test operation; and sends the test result to the target server.

可以以一种或多种程序设计语言或其组合来编写用于执行本公开的一些实施例的操作的计算机程序代码,上述程序设计语言包括面向对象的程序设计语言—诸如Java、Smalltalk、C++,还包括常规的过程式程序设计语言—诸如“C”语言或类似的程序设计语言。程序代码可以完全地在用户计算机上执行、部分地在用户计算机上执行、作为一个独立的软件包执行、部分在用户计算机上部分在远程计算机上执行、或者完全在远程计算机或服务器上执行。在涉及远程计算机的情形中,远程计算机可以通过任意种类的网络——包括局域网(LAN)或广域网(WAN)——连接到用户计算机,或者,可以连接到外部计算机(例如利用因特网服务提供商来通过因特网连接)。Computer program code for performing the operations of some embodiments of the present disclosure may be written in one or more programming languages or a combination thereof, including object-oriented programming languages such as Java, Smalltalk, C++, and conventional procedural programming languages such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving a remote computer, the remote computer may be connected to the user's computer via any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).

附图中的流程图和框图,图示了按照本公开各种实施例的系统、方法和计算机程序产品的可能实现的体系架构、功能和操作。在这点上,流程图或框图中的每个方框可以代表一个模块、程序段、或代码的一部分,该模块、程序段、或代码的一部分包含一个或多个用于实现规定的逻辑功能的可执行指令。也应当注意,在有些作为替换的实现中,方框中所标注的功能也可以以不同于附图中所标注的顺序发生。例如,两个接连地表示的方框实际上可以基本并行地执行,它们有时也可以按相反的顺序执行,这依所涉及的功能而定。也要注意的是,框图和/或流程图中的每个方框、以及框图和/或流程图中的方框的组合,可以用执行规定的功能或操作的专用的基于硬件的系统来实现,或者可以用专用硬件与计算机指令的组合来实现。The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present disclosure. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some implementations as replacements, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and/or flow chart, and the combination of the square boxes in the block diagram and/or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

描述于本公开的一些实施例中的单元可以通过软件的方式实现,也可以通过硬件的方式来实现。所描述的单元也可以设置在处理器中,例如,可以描述为:一种处理器包括第一发送单元,执行单元和第二发送单元。其中,这些单元的名称在某种情况下并不构成对该单元本身的限定,例如,第一发送单元还可以被描述为“向目标服务器发送获取缓存服务器性能测试任务的请求的单元”。The units described in some embodiments of the present disclosure may be implemented by software or by hardware. The units described may also be provided in a processor, for example, 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, in some cases, constitute limitations on the units themselves, for example, the first sending unit may also be described as "a unit that sends a request to a target server to obtain a cache server performance test task".

本文中以上描述的功能可以至少部分地由一个或多个硬件逻辑部件来执行。例如,非限制性地,可以使用的示范类型的硬件逻辑部件包括:现场可编程门阵列(FPGA)、专用集成电路(ASIC)、专用标准产品(ASSP)、片上系统(SOC)、复杂可编程逻辑设备(CPLD)等等。The functions described above herein 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 chips (SOCs), complex programmable logic devices (CPLDs), and the like.

以上描述仅为本公开的一些较佳实施例以及对所运用技术原理的说明。本领域技术人员应当理解,本公开的实施例中所涉及的发明范围,并不限于上述技术特征的特定组合而成的技术方案,同时也应涵盖在不脱离上述发明构思的情况下,由上述技术特征或其等同特征进行任意组合而形成的其它技术方案。例如上述特征与本公开的实施例中公开的(但不限于)具有类似功能的技术特征进行互相替换而形成的技术方案。The above descriptions are only some preferred embodiments of the present disclosure and an explanation of the technical principles used. Those skilled in the art should understand that the scope of the invention involved in the embodiments of the present disclosure is not limited to the technical solutions formed by a specific combination of the above-mentioned technical features, but should also cover other technical solutions formed by any combination of the above-mentioned technical features or their equivalent features without departing from the above-mentioned inventive concept. For example, the above-mentioned features are replaced with the technical features with similar functions disclosed in the embodiments of the present disclosure (but not limited to) and the technical solutions formed.

Claims (8)

1.一种用于客户端的缓存服务器性能测试方法,包括:1. A cache server performance testing method for a client, comprising: 响应于确定在预设时间段内的客户端启动次数满足第一预设条件,向目标服务器发送获取缓存服务器性能测试任务的请求,所述第一预设条件是客户端启动次数小于等于预设启动次数;In response to determining that the number of client startups within a preset time period meets a first preset condition, sending a request to the target server to obtain a cache server performance test task, wherein the first preset condition is that the number of client startups is less than or equal to a preset number of startups; 响应于确定客户端启动时间满足第二预设条件,根据所述目标服务器返回的、所述缓存服务器性能测试任务的任务信息包括的用于缓存服务器性能测试的测试网址集合,对目标缓存服务器执行性能测试操作,得到所述性能测试操作的测试结果,所述第二预设条件是客户端启动时间小于预设启动时间,包括:根据所述测试网址集合中的每个测试网址,向所述目标缓存服务器发送资源获取请求;获取与所述测试网址集合中每个测试网址对应的资源获取请求相关的缓存服务器响应时间,得到缓存服务器响应时间集合;确定所述缓存服务器响应时间集合中各个缓存服务器响应时间的平均值,得到缓存服务器平均响应时间,将所述缓存服务器平均响应时间作为性能测试操作的测试结果;In response to determining that the client startup time satisfies a second preset condition, a performance test operation is performed on the target cache server according to a set of test URLs for cache server performance testing included in 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, wherein the second preset condition is that the client startup time is less than a preset startup time, including: sending a resource acquisition request to the target cache server according to each test URL in the test URL set; obtaining a cache server response time associated with the resource acquisition request corresponding to each test URL in the test URL set, to obtain a cache server response time set; determining an average value of the response time of each cache server in the cache server response time set, to obtain an average cache server response time, and using the average cache server response time as the test result of the performance test operation; 将所述测试结果发送至所述目标服务器。The test result is sent to the target server. 2.根据权利要求1所述的方法,其中,所述方法还包括:2. The method according to claim 1, wherein the method further comprises: 确定所述客户端所在的终端设备的设备状态信息,其中,所述设备状态信息包括以下至少一项:负载信息,通信信号强度信息,网络信息;Determine device status information of the terminal device where the client is located, wherein the device status information includes at least one of the following: load information, communication signal strength information, and network information; 将所述设备状态信息发送至所述目标服务器。The device status information is sent to the target server. 3.根据权利要求1所述的方法,其中,所述任务信息包括:用于缓存服务器性能测试的测试网址。3. The method according to claim 1, wherein the task information includes: a test website address for cache server performance testing. 4.根据权利要求3所述的方法,其中,所述根据所述目标服务器返回的、所述缓存服务器性能测试任务的任务信息,对目标缓存服务器执行性能测试操作,包括:4. The method according to claim 3, wherein the step of performing 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 comprises: 根据所述测试网址,向所述目标缓存服务器发送资源获取请求;According to the test URL, sending a resource acquisition request to the target cache server; 获取与所述资源获取请求相关的响应信息,将所述响应信息作为性能测试操作的测试结果,其中,所述响应信息包括以下至少一项:域名解析时间,传输控制协议TCP连接时间,安全套接字协议SSL握手时间,缓存服务器响应时间,资源传输速度,请求结果信息。Obtain response information related to the resource acquisition request, and use the response information as the test result of the performance test operation, wherein the response information includes 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. 5.根据权利要求1所述的方法,其中,所述目标缓存服务器是通过以下步骤确定的:5. The method according to claim 1, wherein the target cache server is determined by the following steps: 将所述测试网址的域名解析结果所指示的缓存服务器确定为所述目标缓存服务器。The cache server indicated by the domain name resolution result of the test website is determined as the target cache server. 6.一种用于客户端的缓存服务器性能测试装置,包括:6. A cache server performance testing device for a client, comprising: 第一发送单元,被配置成响应于确定在预设时间段内的客户端启动次数满足第一预设条件,向目标服务器发送获取缓存服务器性能测试任务的请求,所述第一预设条件是客户端启动次数小于等于预设启动次数;A first sending unit is configured to send a request for obtaining a cache server performance test task to a target server in response to determining that the number of client startups within a preset time period meets a first preset condition, wherein the first preset condition is that the number of client startups is less than or equal to a preset number of startups; 执行单元,被配置成响应于确定客户端启动时间满足第二预设条件,根据所述目标服务器返回的、所述缓存服务器性能测试任务的任务信息包括的用于缓存服务器性能测试的测试网址集合,对目标缓存服务器执行性能测试操作,得到所述性能测试操作的测试结果,所述第二预设条件是客户端启动时间小于预设启动时间,包括:根据所述测试网址集合中的每个测试网址,向所述目标缓存服务器发送资源获取请求;获取与所述测试网址集合中每个测试网址对应的资源获取请求相关的缓存服务器响应时间,得到缓存服务器响应时间集合;确定所述缓存服务器响应时间集合中各个缓存服务器响应时间的平均值,得到缓存服务器平均响应时间,将所述缓存服务器平均响应时间作为性能测试操作的测试结果;The execution unit is configured to, in response to determining that the client startup time meets a second preset condition, perform a performance test operation on the target cache server according to a test URL set for cache server performance testing included in the task information of the cache server performance test task returned by the target server, and obtain a test result of the performance test operation, wherein the second preset condition is that the client startup time is less than a preset startup time, including: sending a resource acquisition request to the target cache server according to each test URL in the test URL set; obtaining a cache server response time related to the resource acquisition request corresponding to each test URL in the test URL set, and obtaining a cache server response time set; determining an average value of the response time of each cache server in the cache server response time set, and obtaining a cache server average response time, and using the cache server average response time as the test result of the performance test operation; 第二发送单元,被配置成将所述测试结果发送至所述目标服务器。The second sending unit is configured to send the test result to the target server. 7.一种电子设备,包括:7. An electronic device comprising: 一个或多个处理器;one or more processors; 存储装置,其上存储有一个或多个程序;a storage device having one or more programs stored thereon; 当所述一个或多个程序被所述一个或多个处理器执行,使得所述一个或多个处理器实现如权利要求1-5中任一所述的方法。When the one or more programs are executed by the one or more processors, the one or more processors implement the method according to any one of claims 1 to 5. 8.一种计算机可读介质,其上存储有计算机程序,其中,所述程序被处理器执行时实现如权利要求1-5中任一所述的方法。8. A computer readable medium having a computer program stored thereon, wherein when the program is executed by a processor, the method according to any one of claims 1 to 5 is implemented.
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 CN112363879A (en) 2021-02-12
CN112363879B true 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)

Families Citing this family (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112363879B (en) * 2020-11-20 2024-11-01 上海连尚网络科技有限公司 Cache server performance test method, device, equipment and medium
CN113778851A (en) * 2021-04-02 2021-12-10 北京京东拓先科技有限公司 Method, apparatus, system, server and medium for stress testing
CN113364808B (en) * 2021-06-30 2022-09-16 北京天融信网络安全技术有限公司 Industrial control firewall testing method, device, equipment and storage medium
CN113592305B (en) * 2021-07-29 2024-08-13 北京百度网讯科技有限公司 Test method, test device, electronic equipment and storage medium
CN114064435A (en) * 2021-11-18 2022-02-18 京东科技信息技术有限公司 Database testing method, apparatus, medium and electronic equipment
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 (2)

* 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
CN108574604A (en) * 2017-03-07 2018-09-25 北京京东尚科信息技术有限公司 test method and device

Family Cites Families (17)

* 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
CN107943594B (en) * 2016-10-13 2021-11-12 北京京东尚科信息技术有限公司 Data acquisition method and device
CN109873732B (en) * 2017-12-05 2021-05-25 北京京东尚科信息技术有限公司 Test method and device for proxy server
CN110457199B (en) * 2018-05-08 2024-08-16 北京京东尚科信息技术有限公司 Performance test method and device
CN108959087A (en) * 2018-06-29 2018-12-07 百度在线网络技术(北京)有限公司 test method and device
CN108962244A (en) * 2018-06-29 2018-12-07 百度在线网络技术(北京)有限公司 Method and apparatus for sending information
CN109062768B (en) * 2018-08-09 2020-09-18 网宿科技股份有限公司 IO performance evaluation method and device of cache server
CN109446071A (en) * 2018-09-26 2019-03-08 深圳壹账通智能科技有限公司 Interface test method, interface test device, electronic equipment and storage medium
US11169905B2 (en) * 2018-10-30 2021-11-09 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
CN110851359B (en) * 2019-11-07 2023-10-27 网易(杭州)网络有限公司 Application program testing method and device and server
CN111026645B (en) * 2019-11-20 2023-11-28 航天信息股份有限公司 User interface automatic test method and device, storage medium and electronic equipment
CN111045911B (en) * 2019-12-19 2024-04-16 京东科技控股股份有限公司 Performance test method, performance test device, storage medium and electronic equipment
CN111555940B (en) * 2020-04-28 2022-02-01 北京字节跳动网络技术有限公司 Client test method and device, electronic equipment and computer readable storage medium
CN112363879B (en) * 2020-11-20 2024-11-01 上海连尚网络科技有限公司 Cache server performance test method, device, equipment and medium

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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

Also Published As

Publication number Publication date
WO2022105591A1 (en) 2022-05-27
CN112363879A (en) 2021-02-12

Similar Documents

Publication Publication Date Title
CN112363879B (en) Cache server performance test method, device, equipment and medium
CN112597047B (en) Test method, test device, electronic equipment and computer readable medium
CN108494860B (en) WEB access system, WEB access method and device for client
CN108833251B (en) Method and apparatus for controlling network interconnection
CN111858381B (en) Application fault tolerance capability test method, electronic device and medium
CN110795446A (en) List updating method and device, readable medium and electronic equipment
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
WO2023273576A1 (en) Abnormal request processing method and apparatus, electronic device and storage medium
CN116599846A (en) Inter-tenant network connection method, apparatus, electronic device and computer readable medium
CN114465919B (en) Network service testing method, system, electronic equipment and storage medium
CN113553206B (en) Data event execution method and device, electronic equipment and computer readable medium
CN112163176B (en) Data storage method, device, electronic device and computer readable medium
CN114035861B (en) Cluster configuration method, device, electronic device and computer readable medium
CN114785770A (en) Mirror layer file sending method and device, electronic equipment and computer readable medium
CN111460020B (en) Method, device, electronic equipment and medium for resolving message
CN114115941A (en) Resource sending method, page rendering method, apparatus, electronic device and medium
CN113077351A (en) Information pushing method and device applied to insurance industry, electronic equipment and medium
CN114172946B (en) Request result sending method, device, electronic equipment and computer readable medium
CN114359673B (en) Small sample smoke detection method, device and equipment based on metric learning
CN111404824B (en) Method, apparatus, electronic device, and computer-readable medium for forwarding request
CN116627530A (en) Page link jump method, device, electronic equipment and computer readable medium
CN118138597A (en) Multi-subnet distributed database data transmission method, device, equipment and medium
CN114444064A (en) Account processing method and device, electronic equipment and computer readable medium
CN116701013A (en) Message consumption method, device, electronic equipment and computer readable medium

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
GR01 Patent grant
CP03 Change of name, title or address
CP03 Change of name, title or address

Address after: 200135 7th floor, No.1 Lane 666, zhangheng Road, Pudong New Area, Shanghai

Patentee after: Shanghai Lianshang Network Technology Group Co.,Ltd.

Country or region after: China

Address before: 200135 7th floor, No.1 Lane 666, zhangheng Road, Pudong New Area, Shanghai

Patentee before: SHANGHAI LIANSHANG NETWORK TECHNOLOGY Co.,Ltd.

Country or region before: China