Application time consumption assessment method and device, equipment, storage medium and program product

By evaluating the time-consuming of multiple operating parameter groups of industrial on-site computing power network applications, the problem of inability to evaluate computing power resource matching is solved, and the evaluation and optimization of computing power resource matching is achieved.

CN119603211AActive Publication Date: 2025-03-11CHINA UNITED NETWORK COMM GRP CO LTD
View PDF 7 Cites 0 Cited by

Patent Information

Application Number
CN202411750273.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-29
Publication Date
2025-03-11
Estimated Expiration
2044-11-29

AI Technical Summary

Technical Problem

Industrial enterprises are unable to evaluate the time-consuming operation of computing power network applications on the industrial site based on the computing power resources, resulting in the inability to determine whether the computing power network applications match the computing power resources on the site.

Method used

A time-consuming evaluation method for the application is provided, by determining the time-consuming evaluation results of the application to be evaluated by determining the time-consuming evaluation corresponding to each operation parameter group of the multiple operation parameter group of the application to be evaluated, and performing time-consuming evaluation based on these time-consuming evaluations.

Benefits of technology

Time-consuming assessment of industrial on-site computing power network applications is realized, helping users determine the matching degree between computing power network applications and on-site computing power resources, thereby optimizing resource allocation.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119603211A_ABST
    Figure CN119603211A_ABST
Patent Text Reader

Abstract

The invention discloses an application time consumption evaluation method, device and equipment, a storage medium and a program product, relates to the technical field of communication, and is used for evaluating time consumption of a computing power network application of an industrial field during operation based on field computing power resources. The method comprises the following steps: determining consumed time corresponding to each operation parameter group in a plurality of operation parameter groups of a to-be-evaluated application; the consumed time corresponding to the target operation parameter group is the duration consumed by the to-be-evaluated application in the target operation parameter group on the basis of the preset computing power resource; the target operation parameter group is any operation parameter group in a plurality of operation parameter groups; and time consumption evaluation is carried out based on the time consumption corresponding to each operation parameter group, and a time consumption evaluation result of the to-be-evaluated application is determined. The method and the device are applied to a scene for controlling signal forwarding.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of communication technology, and in particular to an application time consumption evaluation method, device, equipment, storage medium and program product. Background Art

[0002] With the development of computing power networks, computing power resources are increasingly used in industrial manufacturing production. Currently, computing power network applications in industrial sites can be carried based on computing power resources at industrial sites. Computing power network applications refer to programs that can run on production equipment (such as three-dimensional (3D) printers, industrial robots, CNC lathes, etc.) in industrial manufacturing production, upper devices of production equipment, gateways, edge servers and other devices or computing power resources.

[0003] However, when industrial enterprises configure computing resources for computing network applications at industrial sites, they are unable to evaluate the time it takes for computing network applications at industrial sites to run based on the computing resources at the site, which in turn makes it impossible for users to determine whether the computing network applications match the computing resources at the site. Therefore, how to evaluate the time it takes for computing network applications to run based on computing resources has become an urgent problem to be solved. Summary of the invention

[0004] The present application provides an application time consumption evaluation method, device, equipment, storage medium and program product, which are used to solve the technical problem that it is impossible to evaluate the time consumption of industrial site computing network applications when running based on the on-site computing resources, which leads to the user being unable to determine whether the computing network applications match the on-site computing resources.

[0005] In order to achieve the above purpose, this application adopts the following technical solutions:

[0006] In a first aspect, a method for evaluating application time consumption is provided, the method comprising: determining the time consumption corresponding to each of multiple operating parameter groups of an application to be evaluated; the time consumption corresponding to a target operating parameter group is the time spent by the application to be evaluated under the target operating parameter group based on preset computing resources; the target operating parameter group is any operating parameter group among the multiple operating parameter groups; performing time consumption evaluation based on the time consumption corresponding to each operating parameter group, and determining a time consumption evaluation result of the application to be evaluated.

[0007] In one possible implementation, a time consumption evaluation is performed based on the time consumption corresponding to each operating parameter group to determine the time consumption evaluation result of the application to be evaluated, including: determining the statistical parameters corresponding to the preset computing power resources based on the time consumption corresponding to each operating parameter group; determining the time consumption evaluation result of the application to be evaluated based on the statistical parameters corresponding to the preset computing power resources.

[0008] In a possible implementation, the preset computing power resources include multiple ones; the statistical parameters corresponding to each preset computing power resource are used to characterize the running status data of the application to be evaluated under the preset computing power resources and according to different running parameter groups.

[0009] In one possible implementation, the statistical parameters include a variance of the time consumption and an average of the time consumption; a time consumption evaluation result of the application to be evaluated is determined based on the statistical parameters corresponding to the preset computing power resources, including: when the variance of the time consumption corresponding to each preset computing power resource in multiple preset computing power resources is less than a preset value, based on the average of the time consumption corresponding to at least one preset computing power resource in the multiple preset computing power resources, determining that the time consumption evaluation result of the application to be evaluated includes the estimated time consumption of the application to be evaluated.

[0010] In a possible implementation, the statistical parameter includes a probability distribution function; the probability distribution function is used to characterize the probability of time consumption of running the application to be evaluated based on preset computing resources.

[0011] In one possible implementation, the statistical parameters also include a variance of the time consumption; a time consumption evaluation result of the application to be evaluated is determined based on the statistical parameters corresponding to the preset computing power resources, including: when the variance of the time consumption corresponding to at least one preset computing power resource among multiple preset computing power resources is greater than or equal to a preset value, if there is a peak in the probability distribution function corresponding to at least one preset computing power resource, based on the interval of the time consumption corresponding to the peak, determining that the time consumption evaluation result of the application to be evaluated includes the estimated time consumption of the application to be evaluated.

[0012] In one possible implementation, the statistical parameters also include a variance of the time consumption; and a time consumption evaluation result of the application to be evaluated is determined based on the statistical parameters corresponding to the preset computing power resources, including: when the variance of the time consumption corresponding to at least one preset computing power resource among multiple preset computing power resources is greater than or equal to a preset value, if the probability distribution function corresponding to at least one preset computing power resource is a straight line or a discrete distribution, determining that the time consumption evaluation result of the application to be evaluated is that the time consumption of the application to be evaluated cannot be estimated.

[0013] In one possible implementation, the statistical parameters include a fitted polynomial function; the fitted polynomial function is determined based on the time consumption corresponding to each operating parameter group corresponding to the preset computing power resources, and the number of operating parameters included in each operating parameter group corresponding to the preset computing power resources.

[0014] In one possible implementation, the statistical parameters also include the variance of the time consumption and the average of the time consumption; the time consumption evaluation result of the application to be evaluated is determined based on the statistical parameters corresponding to the preset computing power resources, including: when the variance of the time consumption corresponding to at least one preset computing power resource among multiple preset computing power resources is greater than or equal to a preset value, if the fitting polynomial functions corresponding to at least two preset computing power resources among the multiple preset computing power resources are the same, based on the fitting polynomial functions corresponding to the at least two preset computing power resources, and the average of the time consumption corresponding to at least one preset computing power resource, determine that the time consumption evaluation result of the application to be evaluated includes the estimated time consumption of the application to be evaluated.

[0015] In one possible implementation, the statistical parameters also include a variance of the time consumption; and a time consumption evaluation result of the application to be evaluated is determined based on the statistical parameters corresponding to the preset computing power resources, including: when the variance of the time consumption corresponding to at least one preset computing power resource among multiple preset computing power resources is greater than or equal to a preset value, if the fitting polynomial function corresponding to each preset computing power resource in the multiple preset computing power resources is different, determining that the time consumption evaluation result of the application to be evaluated is that the time consumption of the application to be evaluated cannot be estimated.

[0016] In one possible implementation, a time consumption evaluation result of an application to be evaluated is determined based on statistical parameters corresponding to preset computing power resources, including: determining the time consumption evaluation result based on performance parameters of on-site computing power resources of the application to be evaluated, performance parameters of preset computing power resources, and statistical parameters corresponding to preset computing power resources; the performance parameters include at least one of the following: processor operation speed, number of processor cores, and memory capacity.

[0017] In a second aspect, an application time consumption evaluation device is provided, which includes: a determination unit; a determination unit, used to determine the time consumption corresponding to each of multiple operating parameter groups of the application to be evaluated; the time consumption corresponding to the target operating parameter group is the time spent by the application to be evaluated under the target operating parameter group based on preset computing resources; the target operating parameter group is any operating parameter group among the multiple operating parameter groups; the determination unit is also used to perform time consumption evaluation based on the time consumption corresponding to each operating parameter group, and determine the time consumption evaluation result of the application to be evaluated.

[0018] In one possible implementation, the determination unit is further used to determine the statistical parameters corresponding to the preset computing power resources based on the time consumption corresponding to each operating parameter group; the determination unit is further used to determine the time consumption evaluation result of the application to be evaluated based on the statistical parameters corresponding to the preset computing power resources.

[0019] In a possible implementation, the preset computing power resources include multiple ones; the statistical parameters corresponding to each preset computing power resource are used to characterize the running status data of the application to be evaluated under the preset computing power resources and according to different running parameter groups.

[0020] In one possible implementation, the statistical parameters include a variance of the time consumption and an average of the time consumption; the determination unit is also used to determine, when the variance of the time consumption corresponding to each preset computing power resource in a plurality of preset computing power resources is less than a preset value, based on the average of the time consumption corresponding to at least one preset computing power resource among the plurality of preset computing power resources, to determine a time consumption evaluation result of the application to be evaluated, including an estimated time consumption of the application to be evaluated.

[0021] In a possible implementation, the statistical parameter includes a probability distribution function; the probability distribution function is used to characterize the probability of time consumption of running the application to be evaluated based on preset computing resources.

[0022] In one possible implementation, the statistical parameters also include the variance of the time consumption; the determination unit is also used to determine, when the variance of the time consumption corresponding to at least one preset computing power resource among multiple preset computing power resources is greater than or equal to a preset value, and if there is a peak in the probability distribution function corresponding to at least one preset computing power resource, based on the interval of the time consumption corresponding to the peak, the time consumption evaluation result of the application to be evaluated includes the estimated time consumption of the application to be evaluated.

[0023] In one possible implementation, the statistical parameters also include the variance of the time consumption; the determination unit is also used to determine that the time consumption evaluation result of the application to be evaluated is that the time consumption of the application to be evaluated cannot be estimated when the variance of the time consumption corresponding to at least one preset computing power resource among multiple preset computing power resources is greater than or equal to a preset value, and if the probability distribution function corresponding to at least one preset computing power resource is a straight line or a discrete distribution.

[0024] In one possible implementation, the statistical parameters include a fitted polynomial function; the fitted polynomial function is determined based on the time consumption corresponding to each operating parameter group corresponding to the preset computing power resources, and the number of operating parameters included in each operating parameter group corresponding to the preset computing power resources.

[0025] In one possible implementation, the statistical parameters also include the variance of the time consumption and the average time consumption; the determination unit is also used to determine that the time consumption evaluation result of the application to be evaluated includes the estimated time consumption of the application to be evaluated based on the fitting polynomial functions corresponding to at least two preset computing power resources and the average time consumption corresponding to at least one preset computing power resource, when the variance of the time consumption corresponding to at least one preset computing power resource among multiple preset computing power resources is greater than or equal to a preset value, and if the fitting polynomial functions corresponding to at least two preset computing power resources among the multiple preset computing power resources are the same.

[0026] In one possible implementation, the statistical parameters also include the variance of the time consumption; the determination unit is also used to determine that the time consumption evaluation result of the application to be evaluated is that the time consumption of the application to be evaluated cannot be estimated when the variance of the time consumption corresponding to at least one preset computing power resource among multiple preset computing power resources is greater than or equal to a preset value and if the fitting polynomial function corresponding to each preset computing power resource among the multiple preset computing power resources is different.

[0027] In one possible implementation, the determination unit is also used to determine the time consumption evaluation result based on the performance parameters of the on-site computing resources of the application to be evaluated, the performance parameters of the preset computing resources, and the statistical parameters corresponding to the preset computing resources; the performance parameters include at least one of the following: processor operation speed, number of processor cores, and memory capacity.

[0028] In a third aspect, an electronic device comprises: a processor and a memory; wherein the memory is used to store one or more programs, and the one or more programs include computer execution instructions. When the electronic device is running, the processor executes the computer execution instructions stored in the memory to enable the electronic device to execute an application time consumption evaluation method as in the first aspect.

[0029] In a fourth aspect, a computer-readable storage medium storing one or more programs is provided. The one or more programs include instructions. When the instructions are executed by a computer, the computer executes an application time estimation method as described in the first aspect.

[0030] In a fifth aspect, a computer program product is provided. When the computer instructions are executed on an electronic device, the electronic device executes an application time consumption evaluation method as in the first aspect.

[0031] The present application provides an application time consumption evaluation method, device, equipment, storage medium and program product, which are applied to the scenario of application time consumption evaluation. When it is necessary to evaluate the time consumption of the application to be evaluated based on the computing power resources, the time consumption corresponding to each operating parameter group of the multiple operating parameter groups of the application to be evaluated under the respective operating parameter groups can be determined. Further, the time consumption evaluation is performed based on the time consumption corresponding to each operating parameter group to determine the time consumption evaluation result of the application to be evaluated. That is, under normal circumstances, the operating parameters of the application to be evaluated are changing, and the change of the operating parameters will affect the time consumption of the application to be evaluated based on the computing power resources. Therefore, the time consumption evaluation can be performed according to multiple operating parameter groups. Through the above method, the time consumption evaluation can be performed according to the time consumption corresponding to the operating parameters of the application to be evaluated, and the time consumption evaluation result of the application to be evaluated can be determined. Thus, the technical problem that the time consumption of the computing power network application at the industrial site cannot be evaluated when it is running based on the computing power resources at the site, which leads to the user being unable to determine whether the computing power network application matches the computing power resources at the site, is solved. BRIEF DESCRIPTION OF THE DRAWINGS

[0032] Figure 1 A schematic diagram of the structure of an application time consumption evaluation system provided in an embodiment of the present application;

[0033] Figure 2 A schematic diagram of the architecture of an electronic device evaluation system provided in an embodiment of the present application;

[0034] Figure 3 A schematic diagram of a method for evaluating application time consumption provided in an embodiment of the present application Figure 1 ;

[0035] Figure 4 A schematic diagram of a method for evaluating application time consumption provided in an embodiment of the present application Figure 2 ;

[0036] Figure 5 A schematic diagram of a method for evaluating application time consumption provided in an embodiment of the present application Figure 3 ;

[0037] Figure 6 A schematic diagram of a method for evaluating application time consumption provided in an embodiment of the present application Figure 4 ;

[0038] Figure 7 A schematic diagram of a method for evaluating application time consumption provided in an embodiment of the present application Figure 5 ;

[0039] Figure 8 A schematic diagram of a method for evaluating application time consumption provided in an embodiment of the present application Figure 6 ;

[0040] Fig. 9 A schematic diagram of a method for evaluating application time consumption provided in an embodiment of the present application Figure 7 ;

[0041] Fig.10 A schematic diagram of a method for evaluating application time consumption provided in an embodiment of the present application Figure 8 ;

[0042] Fig.11 A schematic diagram of the structure of an application time consumption evaluation device provided in an embodiment of the present application;

[0043] Fig.12 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0044] The technical solutions in the embodiments of the present application will be described below in conjunction with the drawings in the embodiments of the present application.

[0045] In the description of this application, unless otherwise specified, " / " means "or", for example, A / B can mean A or B. "And / or" in this article is merely a description of the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. In addition, "at least one" and "plurality" refer to two or more. The words "first", "second", etc. do not limit the quantity and execution order, and the words "first", "second", etc. do not limit them to be different.

[0046] Existing industrial computing network applications (such as libraries, platforms, etc.) lack evaluation methods or related modules for the computing resources required for industrial on-site computing network applications, and are unable to estimate the time taken by the computing network applications at the industrial site based on the computing resources at the site. As a result, users are unable to evaluate whether the computing network applications match the computing resources based on the time taken by the computing network applications. That is, if the computing network application takes a long time, it means that the computing resources at the site are insufficient, and if the computing network application takes a short time, it means that the computing resources at the site are sufficient. Therefore, industrial enterprises will have the following doubts when choosing computing network applications for industrial sites: 1. Whether the computing network application at the selected industrial site exceeds the existing computing resources at the site. 2. How to select computing network applications based on the existing computing resources at the site. 3. How to select on-site computing resources based on the required computing network applications.

[0047] To solve the above problems, the present application provides an application time consumption evaluation method, which is aimed at computing power network applications at industrial sites, and provides industrial enterprises with a method for quantitatively describing the consumption of computing power resources by computing power network applications. The method can be applied in the industrial computing power network resource service system as a service provided to industrial enterprises, providing services for industrial enterprises to select on-site computing power network applications or industrial site computing power resources (or facilities).

[0048] An application time consumption evaluation method provided in an embodiment of the present application can be applied to an application time consumption evaluation system. Figure 1 FIG. 1 shows a schematic diagram of the structure of an application time consumption evaluation system. Figure 1 As shown, the application time consumption evaluation system 10 includes: industrial equipment 11 and electronic equipment 12. The industrial equipment 11 and the electronic equipment 12 can be connected in a wired manner or in a wireless manner, which is not limited in the embodiment of the present invention.

[0049] The industrial equipment 11 is used to run the application to be evaluated; the electronic device 12 is used to determine the time consumption corresponding to each of the multiple operation parameter groups of the application to be evaluated, and to perform time consumption evaluation based on the time consumption corresponding to each operation parameter group to determine the time consumption evaluation result of the application to be evaluated.

[0050] Optionally, the industrial device 11 is located on the industrial enterprise side. The industrial device 11 can be a computing infrastructure at the industrial site. The industrial device 11 can obtain the image and evaluation parameters (i.e., operating parameters) of the application to be evaluated through the application program, and package the image and operating parameters of the application to be evaluated and upload them to the evaluation system of the electronic device 12, bind the application to be evaluated with the industrial enterprise applying for the evaluation, receive the time consumption evaluation result (also called test result) of the application to be evaluated by the evaluation system of the electronic device 12 and save it, and assist the industrial enterprise in using the time consumption evaluation result. The time consumption evaluation result can be the time consumption of the application to be evaluated that cannot be estimated, and the estimated time consumption of the application to be evaluated when the time consumption of the application to be evaluated can be estimated.

[0051] Specifically, the specific implementation method of the industrial device 11 can be: 1. The industrial device 11 can pull the image of the computing network application (i.e., the application to be evaluated) in the image library of the industrial site through the application program to complete the acquisition of the image of the application to be evaluated. The industrial device 11 can read the evaluation parameters of the application to be evaluated through the application program, or provide an interface for the industrial enterprise to input the evaluation parameters, so as to obtain the parameters required for the evaluation application.

[0052] 2. The industrial device 11 can obtain the network address of the industrial enterprise through the preset document structure through the application, and use the network address as the address for receiving the time consumption evaluation results. The network address refers to the communication address that the industrial enterprise can expose to the outside. The preset document structure can be a document structure designed for the application time consumption evaluation system. The preset document structure may include: network address + application name + version number + parameter description + test parameters + application image + verification. Among them, the network address is the communication address that the industrial enterprise can expose to the outside. The application name can be the application name of the application to be evaluated, which can be in the form of a string, and the upper limit of the length can be specified for the application name (for example, 64 bits). The version number is the version number of the application to be evaluated, which can be in the form of a string, and the upper limit of the length can be specified for the version number (for example, 64 bits).

[0053] Parameter description + test parameters is a data structure provided in this application, including: the number of operating parameter groups, the number of operating parameters (array), the operating parameter name (array), and the operating parameter value (array). Among them, the number of operating parameter groups is a normal number and should be greater than or equal to 2. For example, 2 groups of operating parameter groups are provided, the number of operating parameters included in the first operating parameter group is 2, and the number of operating parameters included in the second operating parameter group is 3, then the parameter description is: Number of operating parameter groups: 2. Number of operating parameters: [2, 3]. Operating parameter names: [name11, name12; name21, name22, name23]. Operating parameter values: [var11, var12; var21, var22, var23]. When verifying the application of industrial equipment 11, you can choose the verification method supported by the evaluation system of the electronic device 12 (for example, md5).

[0054] 3. The industrial device 11 can save the time consumption evaluation result sent by the evaluation system of the electronic device 12 at the industrial site (locally) after receiving it through the application. 4. The industrial device 11 can query the time consumption evaluation result locally through the application according to the application name + version number.

[0055] The electronic device 12 is located on the evaluation system side, and the electronic device 12 can obtain the time-consuming evaluation result through the evaluation system. The evaluation system can be run in the computer room of the operator or large cloud computing resource provider. The architecture of the evaluation system of the electronic device 12 is as follows: Figure 2 As shown, the evaluation system may include a task buffer pool, a resource pool, a controller, a scheduler, and a responder. Among them, the task buffer pool can temporarily store the application time evaluation tasks in the order of the received files. The scheduler is responsible for arranging the computing resources required for the application to be evaluated in the application time evaluation task. The controller is responsible for associating the application to be evaluated, the operating parameters and the computing resources used for the test, and recording the test start time, end time and test results. The responder is responsible for transmitting the test results back to the industrial enterprise side.

[0056] The following describes an application time consumption evaluation method provided by an embodiment of the present application in conjunction with the accompanying drawings. Figure 3 As shown, an application time consumption evaluation method provided in an embodiment of the present application is applied to an electronic device, and the method includes S201-S202:

[0057] S201 : Determine the time consumption corresponding to each of a plurality of operating parameter groups of an application to be evaluated.

[0058] Among them, the time consumption corresponding to the target operating parameter group is the time spent by the application to be evaluated to run based on the preset computing power resources under the target operating parameter group; the target operating parameter group is any operating parameter group among multiple operating parameter groups.

[0059] Optionally, if an industrial enterprise at an industrial site needs to evaluate the time required for the application to be evaluated to run based on computing resources, the industrial enterprise can send an evaluation task to the evaluation system of the electronic device to indicate the estimated time consumption of the application to be evaluated. Furthermore, the evaluation system of the electronic device can obtain multiple operating parameter groups of the application to be evaluated, and under each of the multiple operating parameter groups, by running the application to be evaluated based on preset computing resources, obtain the time consumption corresponding to each operating parameter group.

[0060] The operating parameters included in each of the multiple operating parameter groups of the application to be evaluated may be historical operating parameters recorded when the application to be evaluated is running in an industrial field, or may be operating parameters set by the industrial enterprise itself.

[0061] Exemplarily, the operating parameters included in the operating parameter group may be parameters such as voltage and current. Assume that the multiple operating parameter groups are n (n is an integer greater than 1), namely operating parameter group 1, operating parameter group 2, ..., operating parameter group n. Assume that under operating parameter group 1, the evaluation system of the electronic device can run the application to be evaluated based on the preset computing power resources, and the recorded time spent is t1, then the time spent corresponding to operating parameter group 1 is t1. Assume that under operating parameter group 2, the evaluation system of the electronic device can run the application to be evaluated based on the preset computing power resources, and the recorded time spent is t2, then the time spent corresponding to operating parameter group 2 is t2. By analogy, assuming that under operating parameter group n, the evaluation system of the electronic device can run the application to be evaluated based on the preset computing power resources, and the recorded time spent is t n , then the time required to run parameter group n is t n .

[0062] S202: Perform a time consumption evaluation based on the time consumption corresponding to each operating parameter group, and determine a time consumption evaluation result of the application to be evaluated.

[0063] Optionally, the evaluation system of the electronic device can perform a time consumption evaluation based on the time consumption corresponding to each operating parameter group to determine the time consumption evaluation result of the application to be evaluated. The time consumption evaluation result may include the estimated time consumption of the application to be evaluated, or the time consumption evaluation result may be that the time consumption of the application to be evaluated cannot be estimated. This is because the impact of the operating parameters on the length of time consumed by the application to be evaluated may be irregular. When the impact of the operating parameters on the length of time consumed by the application to be evaluated is irregular, the accuracy of the time consumption calculated based on the operating parameters is poor. In this case, it can be determined that the time consumption of the application to be evaluated cannot be estimated, so as to avoid large errors in the length of time consumed obtained by the user, which may mislead the user.

[0064] When the running parameters have a regular effect on the duration of the application to be evaluated, the accuracy of calculating the duration based on the running parameters is high, and the estimated duration of the application to be evaluated can be calculated. In addition, the more the number of running parameter groups, the more accurate the duration evaluation result.

[0065] Exemplarily, the evaluation system of the electronic device can be based on t1, t2, ..., t n , it is determined to be a time-consuming evaluation result.

[0066] Furthermore, the controller of the evaluation system of the electronic device packages the file including the time-consuming evaluation result with the user address (i.e., the address of the industrial device at the industrial site), the application name (i.e., the name of the application to be evaluated), the version number, and the parameter description + test parameters, and hands it to the responder of the evaluation system of the electronic device, and the responder sends the packaged file including the time-consuming evaluation result to the industrial device at the industrial site. Furthermore, the industrial device can save the packaged file including the time-consuming evaluation result locally.

[0067] Furthermore, users at the industrial site can query the time consumption evaluation results locally by using the application name + version number. If the user believes that the estimated time consumption of the application to be evaluated in the time consumption evaluation result is too long, the user can increase the computing resources used by the industrial site to run the application to be evaluated. If the user believes that the estimated time consumption of the application to be evaluated in the time consumption evaluation result is too short, the user can reduce the computing resources used by the industrial site to run the application to be evaluated to meet the user's own needs.

[0068] It should be noted that for a specific description of how to perform time consumption evaluation based on the time consumption corresponding to each operating parameter group and determine the time consumption evaluation result of the application to be evaluated, reference may be made to the following embodiments, which will not be described in detail here.

[0069] The calculation of the estimated time consumption of the application to be evaluated may also be completed by the application program of the industrial equipment, which is not limited in this embodiment.

[0070] In one design, Figure 4 As shown, an application time consumption evaluation method provided in an embodiment of the present application, the method in the above step S202 specifically includes S301-S302:

[0071] S301. Determine statistical parameters corresponding to preset computing resources based on the time consumption corresponding to each operating parameter group.

[0072] Optionally, the evaluation system of the electronic device can determine the statistical parameters corresponding to the preset computing resources (i.e., the statistical parameters of the application time consumption under the preset computing resources) based on the time consumption corresponding to each operating parameter group. The statistical parameters can characterize the changing trend of the time consumption corresponding to each operating parameter group. The statistical parameters can be the average value, variance and other parameters of the time consumption corresponding to each operating parameter group. The changing trend of the time consumption corresponding to each operating parameter group can reflect whether the operating parameters have an impact on the length of time consumption of the application to be evaluated, and whether the impact is regular.

[0073] S302: Determine a time consumption evaluation result of the application to be evaluated based on statistical parameters corresponding to preset computing resources.

[0074] Optionally, the evaluation system of the electronic device can determine the time consumption evaluation result of the application to be evaluated based on the statistical parameters corresponding to the preset computing resources. When the operating parameters have no effect on the time consumption of the application to be evaluated, or the effect is regular, the estimated time consumption of the application to be evaluated can be calculated based on the statistical parameters.

[0075] This application can determine the statistical parameters corresponding to a computing resource based on the time consumption of the operating parameters corresponding to a certain computing resource, so as to facilitate the subsequent judgment based on the statistical parameters whether the operating parameters have an impact on the duration of the application to be evaluated, and whether the impact is regular, so as to obtain the corresponding time consumption evaluation result.

[0076] In a possible implementation, the preset computing power resources include multiple ones; the statistical parameters corresponding to each preset computing power resource are used to characterize the running status data of the application to be evaluated under the preset computing power resources and according to different running parameter groups.

[0077] For example, it is assumed that the multiple preset computing resources are 2 preset computing resources, namely preset computing resource 1 and preset computing resource 2. Then, it can be assumed that the time consumption corresponding to the operation parameter group 1 corresponding to the preset computing resource 1 is t 11 , the time corresponding to the running parameter group 2 is t 12 , and so on, the time required to run parameter group n is t 1n At this time, the average value corresponding to the preset computing power resource 1 (ie, T1) is t 11 ,t 12 , ..., and t 1n The variance corresponding to the preset computing resource 1 (i.e. D1) is t 11 ,t 12 , ..., and t 1n The variance of .

[0078] It can be assumed that the time consumption corresponding to the operation parameter group 1 corresponding to the preset computing power resource 2 is t 21 , the time corresponding to the running parameter group 2 is t 22, and so on, the time required to run parameter group n is t 2n At this time, the average time consumption corresponding to the preset computing resource 2 (ie, T2) is t 21 ,t 22 , ..., and t 2n The variance of the time consumption corresponding to the preset computing resource 2 (i.e. D2) is t 21 ,t 22 , ..., and t 2n The variance of .

[0079] The present application can determine the time consumption evaluation result of the application to be evaluated based on the statistical parameters corresponding to multiple preset computing resources, that is, the more the number of preset computing resources, the higher the accuracy of the time consumption evaluation result.

[0080] In one design, Figure 5 As shown, an application time consumption evaluation method provided in an embodiment of the present application, the statistical parameters include the variance of the time consumption and the average value of the time consumption; the method in the above step S302 includes: S401:

[0081] S401. When the variance of the time consumption corresponding to each preset computing power resource among multiple preset computing power resources is less than a preset value, determine the time consumption evaluation result of the application to be evaluated including the estimated time consumption of the application to be evaluated based on the average value of the time consumption corresponding to at least one preset computing power resource among the multiple preset computing power resources.

[0082] Optionally, the evaluation system of the electronic device may determine whether the variance of the time consumption corresponding to each preset computing power resource in a plurality of preset computing power resources is less than a preset value. Further, when it is determined that the variance of the time consumption corresponding to each preset computing power resource in a plurality of preset computing power resources is less than a preset value, the evaluation system of the electronic device may deem the application to be evaluated to be a parameter quantity-affected constant type application, which means that when a user uses the application, the change in the number or value of the operating parameters included in each operating parameter group has almost no effect on the time consumption when the application is running based on the computing power resources.

[0083] If the user selects the application, the time it takes for the application to complete the calculation will not change much due to the increase or decrease in the number or value of the operating parameters included in each operating parameter group. Therefore, the evaluation system of the electronic device can determine the estimated time based on the average time corresponding to at least one preset computing resource. This method of calculating the estimated time can be called the first method of calculating the estimated time.

[0084] For example, if D1 and D2 are less than a preset value, the estimated time consumption can be estimated from T1, or estimated from T2, or estimated from the average value of T1 and T2.

[0085] Optionally, if the user wants to complete the operation of the application to be evaluated within a given time, the computing resources available on site can be adjusted based on the first method of calculating the estimated time consumption.

[0086] The present application can estimate the application time based on the average time when the change in the number or value of the operation parameters included in each operation parameter group does not affect the application time when the application is running based on computing resources. That is, if the change in the number or value of the operation parameters does not affect the time, then the average time can represent the application time, thereby improving the accuracy of estimating the application time.

[0087] In a possible implementation, the statistical parameters include a probability distribution function (also referred to as a fitting distribution function); the probability distribution function is used to characterize the probability of time consumption of running the application to be evaluated based on preset computing resources.

[0088] Optionally, when the values ​​of the operating parameters included in each operating parameter group corresponding to the preset computing power resources are different, the evaluation system of the electronic device can obtain the time consumption corresponding to each operating parameter group in the multiple operating parameter groups corresponding to the preset computing power resources, and determine the probability of each different time consumption (i.e., the probability of the time consumption of the preset computing power resources running the application to be evaluated) according to the number of multiple operating parameter groups. That is, the different values ​​of the operating parameters included in different operating parameter groups will affect the time consumption when the application is running based on the computing power resources, and the probability distribution function can reflect the expression form of the influence of the different values ​​of the operating parameters included in the operating parameter groups on the time consumption when the application is running based on the computing power resources. The expression form of the influence can be the influence convergence or the influence divergence.

[0089] This application can determine the probability distribution function corresponding to the preset computing power resources, and facilitate the subsequent determination of the expression of the impact of the change in the value of the operating parameter on the time consumption according to the probability distribution function, so that when the impact converges, the time consumption of the application to be evaluated is calculated according to the probability distribution function. And when the impact diverges, a message that the time consumption of the application to be evaluated cannot be calculated is returned, thereby improving the accuracy of the estimated application time consumption.

[0090] Exemplarily, the probability distribution function corresponding to the preset computing power resource 1 is f(x1), where x is a positive integer. The probability distribution function corresponding to the preset computing power resource 2 is f(x2).

[0091] In one design, Figure 6 As shown, an application time consumption evaluation method provided in an embodiment of the present application, the statistical parameter also includes the variance of the time consumption; the method in the above step S302 includes: S501:

[0092] S501. When the variance of the time consumption corresponding to at least one preset computing power resource among multiple preset computing power resources is greater than or equal to a preset value, and if there is a peak in the probability distribution function corresponding to at least one preset computing power resource, determine the time consumption evaluation result of the application to be evaluated including the estimated time consumption of the application to be evaluated based on the time consumption interval corresponding to the peak.

[0093] Optionally, when the variance corresponding to at least one of the multiple preset computing resources is greater than or equal to a preset value, the evaluation system of the electronic device may determine the estimated time consumption based on the probability distribution function corresponding to the at least one preset computing resource. When the variance corresponding to at least one preset computing resource is greater than or equal to the preset value, it means that when the user uses the application, the change in the numerical value of the operating parameters included in each operating parameter group will affect the time consumption of the application when it is running based on the computing resources.

[0094] When there is a peak in the probability distribution function corresponding to at least one preset computing resource, the evaluation system of the electronic device can determine the estimated time consumption based on the upper and lower limits of the time consumption interval corresponding to the peak (the upper limit is Tu and the lower limit is Td). The existence of a peak in the probability distribution function means that the data with a specified probability are all within a certain interval. For example, if the specified probability is 90%, and there are 10 operating parameter groups, then when the time consumption corresponding to 9 of the 10 operating parameter groups is within the interval of 5s to 7s, the probability distribution function will have a peak, and the time consumption corresponding to the peak is within the interval of 5s to 7s. 5s is the lower limit of the interval, and 7s is the upper limit of the interval.

[0095] The presence of a peak in the probability distribution function indicates that the impact of the numerical value of the operating parameter on the computing power consumed by the application is a convergent impact, which means that when the user uses the application, the numerical change of the operating parameter affects the time consumption, but the impact is within a range (that is, the time consumption corresponding to most operating parameter groups is the same, that is, the probability of a certain time consumption occurring is higher). Then, if the user selects the application, the evaluation system of the electronic device can determine the estimated time consumption based on the upper and lower limits of the time consumption interval corresponding to the peak. This method of calculating the estimated time consumption can be called the second method of calculating the estimated time consumption.

[0096] Exemplarily, if D1 and / or D2 is greater than or equal to a preset value and f(x1) has a peak, the estimated time consumption can be determined based on the upper and lower limits Txu and Txd of the time consumption interval corresponding to the peak of f(x1).

[0097] Optionally, if the user wants to complete the operation of the application to be evaluated within a given time, the computing resources available on site can be adjusted based on the second method of calculating the estimated time consumption.

[0098] This application can calculate the estimated time consumption according to the upper and lower limits of the interval of the probability distribution function when the change in the numerical value of the operating parameter has an impact on the time consumption, and when the impact is a divergent impact, thereby improving the accuracy of estimating the time consumption of the application.

[0099] In one design, Figure 7 As shown, an application time consumption evaluation method provided in an embodiment of the present application, the statistical parameter also includes the variance of the time consumption; the method in the above step S302 includes: S601:

[0100] S601. When the variance of the time consumption corresponding to at least one preset computing power resource among multiple preset computing power resources is greater than or equal to a preset value, and if the probability distribution function corresponding to at least one preset computing power resource is a straight line or a discrete distribution, it is determined that the time consumption evaluation result of the application to be evaluated is that the time consumption of the application to be evaluated cannot be estimated.

[0101] Optionally, when the variance of the time consumption corresponding to at least one preset computing resource among multiple preset computing resources is greater than or equal to the preset value, if the probability distribution function corresponding to at least one preset computing resource is a straight line or a discrete distribution, the evaluation system of the electronic device can determine that the time consumption evaluation result of the application to be evaluated is that the time consumption of the application to be evaluated cannot be estimated. That is, the probability distribution function is a straight line or a discrete distribution (also called a sporadic distribution), which means that the influence of the value of the operating parameter on the computing resource consumption of the application is a divergent influence, which means that when the user uses the application, the estimated time consumption of the application to be evaluated cannot be calculated based on the time consumption corresponding to the values ​​of different operating parameters.

[0102] This application can affect the time consumption when the numerical changes of the operating parameters are changed, but the impact is a divergent impact. It is determined that the time consumption of the application to be evaluated cannot be estimated, so as to avoid the estimated time consumption of the application to be evaluated calculated according to the probability distribution function being inaccurate, which misleads the user.

[0103] In one possible implementation, the statistical parameters include a fitted polynomial function; the fitted polynomial function is determined based on the time consumption corresponding to each operating parameter group corresponding to the preset computing power resources, and the number of operating parameters included in each operating parameter group corresponding to the preset computing power resources.

[0104] Optionally, when the number of operating parameters included in each operating parameter group corresponding to the preset computing power resources is different, the evaluation system of the electronic device can fit the preset influence function based on the time consumption corresponding to each operating parameter group corresponding to the preset computing power resources and the number of operating parameters included in each operating parameter group corresponding to the preset computing power resources to determine the fitting polynomial function corresponding to the preset computing power resources. That is, the different numbers of operating parameters included in different operating parameter groups will affect the time consumption when the application is running based on the computing power resources, and the fitting polynomial function can reflect whether there is a regularity in the influence of different numbers of operating parameters included in the operating parameter groups on the time consumption when the application is running based on the computing power resources.

[0105] Exemplarily, the number of operating parameters included in operating parameter group 1 is 2, and the number of operating parameters included in operating parameter group 2 is 3. The fitting polynomial function corresponding to the preset computing power resource 1 is f(y1), where y is a positive integer and y is the number of operating parameters. The probability distribution function corresponding to the preset computing power resource 2 is f(y2).

[0106] This application can determine the fitting polynomial function corresponding to the preset computing power resources, so as to facilitate the subsequent determination of whether the impact of the change in the number of operating parameters on the time consumption is regular according to the fitting polynomial function, so as to calculate the time consumption of the application to be evaluated according to the fitting polynomial function when there is a regularity. And when there is no regularity, a message that the time consumption of the application to be evaluated cannot be calculated is returned, thereby improving the accuracy of the estimated application time consumption.

[0107] In one design, Figure 8 As shown, an application time consumption evaluation method provided in an embodiment of the present application, the statistical parameters also include the variance of the time consumption and the average value of the time consumption; the above step S302 specifically includes: S701:

[0108] S701. When the variance of the time consumption corresponding to at least one preset computing power resource among multiple preset computing power resources is greater than or equal to a preset value, if the fitting polynomial functions corresponding to at least two preset computing power resources among the multiple preset computing power resources are the same, based on the fitting polynomial functions corresponding to the at least two preset computing power resources and the average value of the time consumption corresponding to at least one preset computing power resource, determine that the time consumption evaluation result of the application to be evaluated includes the estimated time consumption of the application to be evaluated.

[0109] Optionally, when the variance corresponding to at least one of the multiple preset computing power resources is greater than or equal to a preset value, the evaluation system of the electronic device may compare the fitting polynomial functions corresponding to at least two of the multiple preset computing power resources to be the same. If the fitting polynomial functions corresponding to two preset computing power resources are the same, based on the fitting polynomial functions corresponding to the two preset computing power resources and the average time consumption corresponding to at least one preset computing power resource, it is determined that the time consumption evaluation result of the application to be evaluated includes the estimated time consumption of the application to be evaluated.

[0110] That is, when the variance corresponding to at least one preset computing power resource is greater than or equal to the preset value, it means that when the user uses the application, the change in the number of operating parameters included in each operating parameter group will affect the time consumed when the application is running based on the computing power resources. If the fitting polynomial functions corresponding to the two preset computing power resources are the same, it means that the application is a parameter quantity polynomial influence application, which means that when the user uses the application, the impact of the change in the number of operating parameters on the time consumption is regular. Then, if the user selects this application, the evaluation system of the electronic device can determine the estimated time consumption based on the fitting polynomial functions corresponding to the two preset computing power resources and the average value corresponding to the preset computing power resources. This method of calculating the estimated time consumption can be called the third method of calculating the estimated time consumption.

[0111] Exemplarily, if D1 and / or D2 are greater than or equal to a preset value, and f(y1) is the same as f(y2), then the estimated time consumption can be determined based on f(y1) or f(y2), and T1 and / or T2.

[0112] Optionally, if the user wants to complete the operation of the application to be evaluated within a given time, the computing resources available on site can be adjusted based on the third method of calculating the estimated time consumption.

[0113] The present application can calculate the estimated time consumption based on the fitted polynomial function when the number of changes in the operating parameters has an impact on the time consumption and the impact is regular, thereby improving the accuracy of the estimated application time consumption.

[0114] In one design, Fig. 9 As shown, an application time consumption evaluation method provided in an embodiment of the present application, the statistical parameter also includes the variance of the time consumption; the method in the above step S302 specifically includes S801:

[0115] S801. When the variance of the time consumption corresponding to at least one preset computing power resource among multiple preset computing power resources is greater than or equal to a preset value, if the fitting polynomial function corresponding to each preset computing power resource among the multiple preset computing power resources is different, it is determined that the time consumption evaluation result of the application to be evaluated is that the time consumption of the application to be evaluated cannot be estimated.

[0116] Optionally, when the variance corresponding to at least one of the multiple preset computing power resources is greater than or equal to the preset value, if the fitting polynomial function corresponding to each of the multiple preset computing power resources is different, the evaluation system of the electronic device can determine that the time consumption of the application to be evaluated cannot be estimated. That is, the fitting polynomial function corresponding to each preset computing power resource is different, indicating that the application is an application with irregular effect of the number of parameters. An application with irregular effect of the number of parameters means that when the user uses the application, the effect of the change in the number of operating parameters on the time consumption is irregular, that is, the estimated time consumption of the application to be evaluated cannot be calculated based on the time consumption corresponding to the number of different operating parameters.

[0117] This application can be used when the number of running parameters changes has an impact on the time consumption, but when the impact is irregular, the time consumption of the application to be evaluated cannot be estimated, so as to avoid the estimated time consumption of the application to be evaluated calculated based on the fitted polynomial function being inaccurate and misleading to the user.

[0118] In one design, Fig.10 As shown, an application time consumption evaluation method provided by an embodiment of the present application, the above step S302 specifically includes: S901:

[0119] S901. Determine a time consumption evaluation result based on the performance parameters of the on-site computing resources of the application to be evaluated, the performance parameters of the preset computing resources, and the statistical parameters corresponding to the preset computing resources.

[0120] The performance parameter includes at least one of the following: processor operation speed, number of processor cores, and memory capacity.

[0121] Optionally, the operation speed of the processor (ie, central processing unit (CPU)) may be the number of floating point operations per second (FLOPS) performed by the CPU.

[0122] The evaluation system of the electronic device can determine the estimated time consumption based on the performance parameters of the on-site computing resources of the application to be evaluated, the performance parameters of the preset computing resources, and the time consumption corresponding to each operating parameter. When the method for calculating the estimated time consumption is the first method for calculating the estimated time consumption, the estimated time consumption can be estimated by (user computing resource performance (also referred to as the performance parameters of the on-site computing resources) / preset computing resource 1 performance) (also referred to as the performance parameters of the preset computing resource 1)*T1, or (user computing resource performance / computing resource 2 performance)*T2. The performance parameters of the on-site computing resources are the performance parameters of the computing resources on the industrial enterprise side. The preset computing resources are the performance parameters of the computing resources on the evaluation system side.

[0123] When the method for calculating the estimated time consumption is the second method for calculating the estimated time consumption, the estimated time consumption can be obtained by (user computing power resource performance / computing power resource 1 performance)*Td, (user computing power resource performance / computing power resource 1 performance)*Tu.

[0124] When the method for calculating the estimated time consumption is the third method for calculating the estimated time consumption, the estimated time consumption can be estimated by f(y)*user computing resource performance / computing resource 1 performance)*T1, or f(y)*(user computing resource performance / computing resource 2 performance)*T2.

[0125] It should be noted that since the parameters used to calculate the time consumption, such as the average time consumption, the upper and lower limits of the probability distribution function, and the fitted polynomial function, are all obtained based on the computing power resources on the evaluation system side, and there are differences in the performance parameters of the computing power resources on the evaluation system side and those on the industrial enterprise side, multiplying the parameters for calculating the time consumption by the ratio of the performance parameters of the computing power resources on the industrial enterprise side to the performance parameters of the computing power resources on the evaluation system side can offset the difference between the performance parameters of the computing power resources on the evaluation system side and those on the industrial enterprise side, thereby ensuring the accuracy of the estimated time obtained by the user.

[0126] The above mainly introduces the solution provided by the embodiment of the present application from the perspective of the method. In order to realize the above functions, it includes hardware structures and / or software modules corresponding to the execution of each function. Those skilled in the art should easily realize that, in combination with the units and algorithm steps of each example described in the embodiment disclosed herein, the embodiment of the present application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is executed in the form of hardware or computer software driving hardware depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to exceed the scope of the present application.

[0127] The embodiment of the present application can divide the functional modules of an application time consumption evaluation method according to the above method example. For example, each functional module can be divided corresponding to each function, or two or more functions can be integrated into one processing module. The above integrated module can be implemented in the form of hardware or in the form of software functional modules. Optionally, the division of modules in the embodiment of the present application is schematic and is only a logical function division. There may be other division methods in actual implementation.

[0128] Fig.11 This is a schematic diagram of the structure of an application time consumption evaluation device provided in an embodiment of the present application. Fig.11As shown, an application time consumption evaluation device 100 is used to evaluate the time consumption of a computing network application at an industrial site based on the computing resources at the site when the application is running, for example, Figure 3 An application time consumption evaluation method is shown. The application time consumption evaluation device 100 includes: a determination unit 1001.

[0129] Determination unit 1001 is used to determine the time consumption corresponding to each operating parameter group among multiple operating parameter groups of the application to be evaluated; the time consumption corresponding to the target operating parameter group is the time spent by the application to be evaluated to run under the target operating parameter group based on preset computing power resources; the target operating parameter group is any operating parameter group among the multiple operating parameter groups.

[0130] The determining unit 1001 is further configured to perform a time consumption evaluation based on the time consumption corresponding to each operating parameter group, and determine a time consumption evaluation result of the application to be evaluated.

[0131] In one possible implementation, the determination unit 1001 is also used to determine the statistical parameters corresponding to the preset computing power resources based on the time consumption corresponding to each operating parameter group; the determination unit 1001 is also used to determine the time consumption evaluation result of the application to be evaluated based on the statistical parameters corresponding to the preset computing power resources.

[0132] In a possible implementation, the preset computing power resources include multiple ones; the statistical parameters corresponding to each preset computing power resource are used to characterize the running status data of the application to be evaluated under the preset computing power resources and according to different running parameter groups.

[0133] In one possible implementation, the statistical parameters include a variance of the time consumption and an average of the time consumption; the determination unit 1001 is also used to determine, when the variance of the time consumption corresponding to each preset computing power resource in a plurality of preset computing power resources is less than a preset value, based on the average of the time consumption corresponding to at least one preset computing power resource in a plurality of preset computing power resources, to determine the time consumption evaluation result of the application to be evaluated, including the estimated time consumption of the application to be evaluated.

[0134] In a possible implementation, the statistical parameter includes a probability distribution function; the probability distribution function is used to characterize the probability of time consumption of running the application to be evaluated based on preset computing resources.

[0135] In one possible implementation, the statistical parameters also include the variance of the time consumption; the determination unit 1001 is also used to determine, when the variance of the time consumption corresponding to at least one preset computing power resource among multiple preset computing power resources is greater than or equal to a preset value, if there is a peak in the probability distribution function corresponding to at least one preset computing power resource, based on the interval of the time consumption corresponding to the peak, that the time consumption evaluation result of the application to be evaluated includes the estimated time consumption of the application to be evaluated.

[0136] In one possible implementation, the statistical parameters also include a variance of the time consumption; the determination unit 1001 is also used to, when the variance of the time consumption corresponding to at least one preset computing power resource among multiple preset computing power resources is greater than or equal to a preset value, if the probability distribution function corresponding to at least one preset computing power resource is a straight line or a discrete distribution, determine that the time consumption evaluation result of the application to be evaluated is that the time consumption of the application to be evaluated cannot be estimated.

[0137] In one possible implementation, the statistical parameters include a fitted polynomial function; the fitted polynomial function is determined based on the time consumption corresponding to each operating parameter group corresponding to the preset computing power resources, and the number of operating parameters included in each operating parameter group corresponding to the preset computing power resources.

[0138] In one possible implementation, the statistical parameters also include a variance of the time consumption and an average of the time consumption; the determination unit 1001 is also used to determine, when the variance of the time consumption corresponding to at least one preset computing power resource among multiple preset computing power resources is greater than or equal to a preset value, if the fitting polynomial functions corresponding to at least two preset computing power resources among the multiple preset computing power resources are the same, based on the fitting polynomial functions corresponding to at least two preset computing power resources and the average of the time consumption corresponding to at least one preset computing power resource, determine that the time consumption evaluation result of the application to be evaluated includes the estimated time consumption of the application to be evaluated.

[0139] In one possible implementation, the statistical parameters also include a variance of the time consumption; the determination unit 1001 is also used to, when the variance of the time consumption corresponding to at least one preset computing power resource among multiple preset computing power resources is greater than or equal to a preset value, if the fitting polynomial function corresponding to each preset computing power resource in the multiple preset computing power resources is different, determine that the time consumption evaluation result of the application to be evaluated is that the time consumption of the application to be evaluated cannot be estimated.

[0140] In one possible implementation, the determination unit 1001 is also used to determine the time consumption evaluation result based on the performance parameters of the on-site computing resources of the application to be evaluated, the performance parameters of the preset computing resources, and the statistical parameters corresponding to the preset computing resources; the performance parameters include at least one of the following: processor operation speed, number of processor cores, and memory capacity.

[0141] In the case of implementing the functions of the above-mentioned integrated modules in the form of hardware, the present application embodiment provides a possible structural diagram of the electronic device involved in the above-mentioned embodiment. Fig.12 As shown, an electronic device 120 is used to evaluate the time consumption of computing network applications at industrial sites based on the computing resources at the site, such as for executing Figure 3An application time consumption evaluation method is shown. The electronic device 120 includes a processor 1201, a memory 1202 and a bus 1203. The processor 1201 and the memory 1202 may be connected via the bus 1203.

[0142] The processor 1201 is the control center of the communication device, which can be a processor or a general term for multiple processing elements. For example, the processor 1201 can be a general-purpose central processing unit (CPU) or other general-purpose processors. Among them, the general-purpose processor can be a microprocessor or any conventional processor.

[0143] As an embodiment, the processor 1201 may include one or more CPUs, such as Fig.12 CPU 0 and CPU 1 are shown in .

[0144] The memory 1202 may be a read-only memory (ROM) or other type of static storage device that can store static information and instructions, a random access memory (RAM) or other type of dynamic storage device that can store information and instructions, an electrically erasable programmable read-only memory (EEPROM), a disk storage medium or other magnetic storage device, or any other medium that can be used to carry or store desired program code in the form of instructions or data structures and can be accessed by a computer, but is not limited to these.

[0145] As a possible implementation, the memory 1202 may exist independently of the processor 1201, and the memory 1202 may be connected to the processor 1201 via the bus 1203 to store instructions or program codes. When the processor 1201 calls and executes the instructions or program codes stored in the memory 1202, an application time consumption evaluation method provided in an embodiment of the present application can be implemented.

[0146] In another possible implementation, the memory 1202 may also be integrated with the processor 1201 .

[0147] The bus 1203 may be an industry standard architecture (ISA) bus, a peripheral component interconnect (PCI) bus, or an extended industry standard architecture (EISA) bus. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Fig.12 Only one thick line is used in the diagram, but this does not mean that there is only one bus or only one type of bus.

[0148] It should be pointed out that Fig.12 The structure shown does not constitute a limitation on the electronic device 120. Fig.12 In addition to the components shown, the electronic device 120 may include more or fewer components than shown, or combine certain components, or arrange the components differently.

[0149] As an example, combining Fig.11 The function implemented by the determination unit 1001 in the application time consumption evaluation device 100 is similar to Fig.12 The function of processor 1201 in is the same.

[0150] Optional, such as Fig.12 As shown, the electronic device 120 provided in the embodiment of the present application may further include a communication interface 1204 .

[0151] The communication interface 1204 is used to connect with other devices through a communication network. The communication network may be Ethernet, wireless access network, wireless local area network (WLAN), etc. The communication interface 1204 may include a receiving unit for receiving data and a sending unit for sending data.

[0152] In one design, in the electronic device provided in the embodiment of the present application, the communication interface can also be integrated into the processor.

[0153] Through the description of the above implementation methods, those skilled in the art can clearly understand that for the convenience and simplicity of description, only the division of the above functional units is used as an example. In practical applications, the above functions can be assigned to different functional units as needed, that is, the internal structure of the device can be divided into different functional units to complete all or part of the functions described above. The specific working process of the system, device and unit described above can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here.

[0154] An embodiment of the present application also provides a computer-readable storage medium, in which instructions are stored. When a computer executes the instructions, the computer executes each step in the method flow shown in the above method embodiment.

[0155] An embodiment of the present application provides a computer program product. When a computer instruction is executed on an electronic device, the electronic device executes an application time consumption evaluation method in the above method embodiment.

[0156] Among them, the computer-readable storage medium can 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 (a non-exhaustive list) include: an electrical connection with one or more wires, a portable computer disk, a hard disk. Random access memory (random access memory, RAM), read-only memory (read-only memory, ROM), erasable programmable read only memory (erasable programmable read only memory, EPROM), registers, hard disks, optical fibers, portable compact disc read-only memory (compact disc read-only memory, CD-ROM), optical storage devices, magnetic storage devices, or the above in a suitable combination, or any other form of computer-readable storage medium known in the art.

[0157] An exemplary storage medium is coupled to a processor so that the processor can read information from the storage medium and write information to the storage medium. Of course, the storage medium can also be an integral part of the processor. The processor and the storage medium can be located in an application specific integrated circuit (ASIC).

[0158] In the embodiments of the present application, a computer-readable storage medium may be any tangible medium that contains or stores a program, which may be used by or in conjunction with an instruction execution system, apparatus, or device.

[0159] Since the electronic device, computer-readable storage medium, and computer program product in the embodiments of the present application can be applied to the above-mentioned method, the technical effects that can be obtained can also refer to the above-mentioned method embodiments, and the embodiments of the present application will not be repeated here.

[0160] The above are only specific implementation methods of the present application, but the protection scope of the present application is not limited thereto. Any changes or substitutions within the technical scope disclosed in the present application should be included in the protection scope of the present application.

Claims

1. A method for evaluating application time consumption, characterized in that: The method comprises: Determine the time consumption corresponding to each of the multiple operating parameter groups of the application to be evaluated; the time consumption corresponding to the target operating parameter group is the time taken for the application to be evaluated to run under the target operating parameter group based on the preset computing power resources; the target operating parameter group is any operating parameter group among the multiple operating parameter groups; A time consumption evaluation is performed based on the time consumption corresponding to each operating parameter group to determine a time consumption evaluation result of the application to be evaluated.

2. The method according to claim 1, characterized in that The performing time consumption evaluation based on the time consumption corresponding to each operation parameter group to determine the time consumption evaluation result of the application to be evaluated includes: Determine the statistical parameters corresponding to the preset computing power resources based on the time consumption corresponding to each operating parameter group; The time consumption evaluation result of the application to be evaluated is determined based on the statistical parameters corresponding to the preset computing power resources.

3. The method according to claim 2, characterized in that The preset computing power resources include multiple ones; the statistical parameters corresponding to each preset computing power resource are used to characterize the running status data of the application to be evaluated under the preset computing power resources and according to different running parameter groups.

4. The method according to claim 3, characterized in that The statistical parameters include a variance of time consumption and an average of time consumption; and determining the time consumption evaluation result of the application to be evaluated based on the statistical parameters corresponding to the preset computing power resources includes: When the variance of the time consumption corresponding to each preset computing power resource among multiple preset computing power resources is less than a preset value, based on the average value of the time consumption corresponding to at least one preset computing power resource among the multiple preset computing power resources, the time consumption evaluation result of the application to be evaluated is determined to include the estimated time consumption of the application to be evaluated.

5. The method according to claim 3, characterized in that: The statistical parameters include a probability distribution function; the probability distribution function is used to characterize the probability of time consumption of running the application to be evaluated based on the preset computing power resources.

6. The method according to claim 5, characterized in that The statistical parameter also includes a variance of time consumption; and determining the time consumption evaluation result of the application to be evaluated based on the statistical parameter corresponding to the preset computing power resource includes: When the variance of the time consumption corresponding to at least one preset computing power resource among multiple preset computing power resources is greater than or equal to a preset value, if there is a peak in the probability distribution function corresponding to the at least one preset computing power resource, based on the interval of the time consumption corresponding to the peak, the time consumption evaluation result of the application to be evaluated is determined to include the estimated time consumption of the application to be evaluated.

7. The method according to claim 5, characterized in that The statistical parameter also includes a variance of time consumption; and determining the time consumption evaluation result of the application to be evaluated based on the statistical parameter corresponding to the preset computing power resource includes: When the variance of the time consumption corresponding to at least one preset computing power resource among multiple preset computing power resources is greater than or equal to a preset value, if the probability distribution function corresponding to the at least one preset computing power resource is a straight line or a discrete distribution, it is determined that the time consumption evaluation result of the application to be evaluated cannot be estimated.

8. The method according to claim 3, characterized in that The statistical parameters include a fitting polynomial function; the fitting polynomial function is determined based on the time consumption corresponding to each operating parameter group corresponding to the preset computing power resources, and the number of operating parameters included in each operating parameter group corresponding to the preset computing power resources.

9. The method according to claim 8, characterized in that The statistical parameters also include a variance of the time consumption and an average value of the time consumption; and determining the time consumption evaluation result of the application to be evaluated based on the statistical parameters corresponding to the preset computing power resources includes: When the variance of the time consumption corresponding to at least one preset computing power resource among multiple preset computing power resources is greater than or equal to a preset value, if the fitting polynomial functions corresponding to at least two preset computing power resources among the multiple preset computing power resources are the same, based on the fitting polynomial functions corresponding to the at least two preset computing power resources and the average value of the time consumption corresponding to the at least one preset computing power resource, it is determined that the time consumption evaluation result of the application to be evaluated includes the estimated time consumption of the application to be evaluated.

10. The method according to claim 8, characterized in that The statistical parameter also includes a variance of time consumption; and determining the time consumption evaluation result of the application to be evaluated based on the statistical parameter corresponding to the preset computing power resource includes: When the variance of the time consumption corresponding to at least one preset computing power resource among multiple preset computing power resources is greater than or equal to a preset value, if the fitting polynomial function corresponding to each of the multiple preset computing power resources is different, it is determined that the time consumption evaluation result of the application to be evaluated cannot be estimated.

11. The method according to any one of claims 4, 6 and 9, characterized in that: The determining the time consumption evaluation result of the application to be evaluated based on the statistical parameters corresponding to the preset computing power resources includes: The time consumption evaluation result is determined based on the performance parameters of the on-site computing resources of the application to be evaluated, the performance parameters of the preset computing resources, and the statistical parameters corresponding to the preset computing resources; the performance parameters include at least one of the following: processor operation speed, number of processor cores, and memory capacity.

12. An application time consumption evaluation device, characterized in that: The application time consumption evaluation device comprises: a determination unit; The determining unit is used to determine the time consumption corresponding to each operating parameter group in multiple operating parameter groups of the application to be evaluated; the time consumption corresponding to the target operating parameter group is the time taken for the application to be evaluated to run under the target operating parameter group based on the preset computing power resources; the target operating parameter group is any operating parameter group in the multiple operating parameter groups; The determining unit is further configured to perform a time consumption evaluation based on the time consumption corresponding to each of the operating parameter groups, and determine a time consumption evaluation result of the application to be evaluated.

13. An electronic device, characterized in that: include: Processor and memory; The memory is used to store one or more programs, and the one or more programs include computer-executable instructions. When the electronic device is running, the processor executes the computer-executable instructions stored in the memory to enable the electronic device to perform the method described in any one of claims 1-11.

14. A computer-readable storage medium storing one or more programs, characterized in that: The one or more programs include instructions which, when executed by a computer, cause the computer to perform the method of any one of claims 1-11.

15. A computer program product, characterized in that The computer program product comprises computer instructions, and when the computer instructions are executed on an electronic device, the electronic device executes the method according to any one of claims 1 to 11.

Citation Information

Patent Citations

  • System operation optimization method and device, electronic equipment and storage medium

    CN110633148A

  • Task processing method, device and equipment and storage medium

    CN111475298A

  • Case grouping method and device, computer equipment and storage medium

    CN117149613A

  • Computing power resource scheduling method and device

    CN117278556A

  • Resource Allocation in a Cloud Computing System Based on Predictions of Workload Probability Parameters

    US20220405134A1