Time-consuming application evaluation method, device, equipment, storage medium and program product
By evaluating the time consumption of operating parameter groups for industrial field computing network applications, the problem of computing resource matching was solved using statistical parameter evaluation methods, achieving accurate time consumption evaluation and resource matching judgment.
Patent Information
- Application Number
- CN202411750273.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-29
- Publication Date
- 2025-12-16
- Estimated Expiration
- 2044-11-29
AI Technical Summary
Industrial enterprises are unable to assess the runtime of computing network applications based on on-site computing resources, making it impossible to determine whether the computing network applications are compatible with the on-site computing resources.
By determining the time consumption corresponding to each of the multiple operating parameter groups of the application to be evaluated, the time consumption is evaluated based on the statistical parameters of the preset computing resources, including the variance, average value, probability distribution function, and fitting polynomial function of the time consumption, so as to determine the time consumption evaluation result of the application to be evaluated.
It enables accurate assessment of the time consumption of computing network applications, helps users determine the matching degree between computing network applications and on-site computing resources, and avoids misleading assessment results.
Smart Images

Figure CN119603211B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of communication, and in particular to an application time consumption evaluation method and device, equipment, a storage medium and a program product. BACKGROUND
[0002] With the development of computing power network, computing power resources are increasingly widely used in industrial manufacturing production. Currently, computing power resources in an industrial field can be used to carry computing power network applications in the industrial field. The computing power network application refers to a program that can run in a production device (for example, a three-dimensional (3Dimensions, 3D) printer, an industrial robot, a numerical control lathe, etc.), an upper device of the production device, a gateway, an edge server, or a computing power resource in industrial manufacturing production.
[0003] However, when an industrial enterprise configures computing power resources for computing power network applications in an industrial field, the time consumption of the computing power network applications in the industrial field based on the computing power resources in the field cannot be evaluated, and thus a user cannot determine whether the computing power network applications match the computing power resources in the field. Therefore, how to evaluate the time consumption of the computing power network applications based on the computing power resources becomes a problem to be solved. SUMMARY
[0004] The present application provides an application time consumption evaluation method and device, equipment, a storage medium and a program product, which are used to solve the technical problem that the time consumption of computing power network applications in an industrial field based on computing power resources in the field cannot be evaluated, and thus a user cannot determine whether the computing power network applications match the computing power resources in the field.
[0005] To achieve the above object, the present application adopts the following technical solutions:
[0006] In a first aspect, an application time consumption evaluation method is provided. The method includes: determining a time consumption corresponding to each of a plurality of running parameter groups of a to-be-evaluated application; the time consumption corresponding to a target running parameter group is a time length consumed by the to-be-evaluated application based on a preset computing power resource under the target running parameter group; the target running parameter group is any running parameter group in the plurality of running parameter groups; performing time consumption evaluation based on the time consumption corresponding to each running parameter group to determine a time consumption evaluation result of the to-be-evaluated application.
[0007] In a possible implementation manner, the time consumption evaluation based on the time consumption corresponding to each running parameter group to determine the time consumption evaluation result of the to-be-evaluated application includes: determining a statistical parameter corresponding to the preset computing power resource based on the time consumption corresponding to each running parameter group; and determining the time consumption evaluation result of the to-be-evaluated application based on the statistical parameter corresponding to the preset computing power resource.
[0008] In a possible implementation, the preset computing resource includes a plurality of preset computing resources; and the statistical parameter corresponding to each of the preset computing resources is used to represent running state data of the to-be-evaluated application running under the preset computing resource according to different running parameter groups.
[0009] In a possible implementation, the statistical parameter includes a variance of the time consumption and a mean value of the time consumption; and the time consumption evaluation result of the to-be-evaluated application is determined based on the statistical parameter corresponding to the preset computing resource, including: in a case where the variance of the time consumption corresponding to each of the plurality of preset computing resources is less than a preset value, the time consumption evaluation result of the to-be-evaluated application is determined based on the mean value of the time consumption corresponding to at least one of the plurality of preset computing resources, and the time consumption evaluation result of the to-be-evaluated application includes an estimated time consumption of the to-be-evaluated application.
[0010] In a possible implementation, the statistical parameter includes a probability distribution function; and the probability distribution function is used to represent a time consumption probability of the to-be-evaluated application running based on the preset computing resource.
[0011] In a possible implementation, the statistical parameter further includes a variance of the time consumption; and the time consumption evaluation result of the to-be-evaluated application is determined based on the statistical parameter corresponding to the preset computing resource, including: in a case where the variance of the time consumption corresponding to at least one of the plurality of preset computing resources is greater than or equal to a preset value, if a probability distribution function corresponding to the at least one preset computing resource has a peak, the time consumption evaluation result of the to-be-evaluated application is determined based on a time consumption interval corresponding to the peak, and the time consumption evaluation result of the to-be-evaluated application includes an estimated time consumption of the to-be-evaluated application.
[0012] In a possible implementation, the statistical parameter further includes a variance of the time consumption; and the time consumption evaluation result of the to-be-evaluated application is determined based on the statistical parameter corresponding to the preset computing resource, including: in a case where the variance of the time consumption corresponding to at least one of the plurality of preset computing resources is greater than or equal to a preset value, if a probability distribution function corresponding to the at least one preset computing resource is a straight line or a discrete distribution, the time consumption evaluation result of the to-be-evaluated application is determined as being unable to estimate the time consumption of the to-be-evaluated application.
[0013] In a possible implementation, the statistical parameter includes a fitting polynomial function; and the fitting polynomial function is determined based on the time consumption corresponding to each of the running parameter groups corresponding to the preset computing resource and a number of running parameters included in each of the running parameter groups corresponding to the preset computing resource.
[0014] In a possible implementation, the statistical parameters further include a variance of the time consumption and a mean value of the time consumption; and determining the time consumption evaluation result of the to-be-evaluated application based on the statistical parameters corresponding to the preset computing resources comprises: in a case where the variance of the time consumption corresponding to at least one of the preset computing resources is greater than or equal to a preset value, if the fitting polynomial functions corresponding to at least two of the preset computing resources are the same, determining the time consumption evaluation result of the to-be-evaluated application based on the fitting polynomial functions corresponding to the at least two of the preset computing resources and the mean value of the time consumption corresponding to the at least one of the preset computing resources, and the time consumption evaluation result of the to-be-evaluated application comprises an estimated time consumption of the to-be-evaluated application.
[0015] In a possible implementation, the statistical parameters further include a variance of the time consumption; and determining the time consumption evaluation result of the to-be-evaluated application based on the statistical parameters corresponding to the preset computing resources comprises: in a case where the variance of the time consumption corresponding to at least one of the preset computing resources is greater than or equal to a preset value, if the fitting polynomial functions corresponding to each of the preset computing resources are different, determining the time consumption evaluation result of the to-be-evaluated application as being unable to estimate the time consumption of the to-be-evaluated application.
[0016] In a possible implementation, determining the time consumption evaluation result of the to-be-evaluated application based on the statistical parameters corresponding to the preset computing resources comprises: determining the time consumption evaluation result based on the performance parameters of the field computing resources of the to-be-evaluated application, the performance parameters of the preset computing resources, and the statistical parameters corresponding to the preset computing resources; and the performance parameters comprise at least one of the following: a processor operation speed, a processor core number, and a memory capacity.
[0017] In a second aspect, an application time consumption evaluation apparatus is provided, which comprises: a determination unit; the determination unit is configured to determine a time consumption corresponding to each of a plurality of running parameter groups of a to-be-evaluated application; the time consumption corresponding to a target running parameter group is a time length consumed by the to-be-evaluated application based on a preset computing resource running under the target running parameter group; the target running parameter group is any one of the plurality of running parameter groups; and the determination unit is further configured to perform time consumption evaluation based on the time consumption corresponding to each of the running parameter groups, and determine a time consumption evaluation result of the to-be-evaluated application.
[0018] In a possible implementation, the determination unit is further configured to determine statistical parameters corresponding to the preset computing resources based on the time consumption corresponding to each of the running parameter groups; and the determination unit is further configured to determine the time consumption evaluation result of the to-be-evaluated application based on the statistical parameters corresponding to the preset computing resources.
[0019] In a possible implementation, the preset computing resources comprise a plurality of preset computing resources; and the statistical parameters corresponding to each of the preset computing resources are used to represent running state data of the to-be-evaluated application running under the preset computing resource according to different running parameter groups.
[0020] In a possible implementation, the statistical parameters include a variance of the time consumption and a mean value of the time consumption; and the determining unit is further configured to determine, in a case where the variance of the time consumption corresponding to each of the plurality of preset computing resources is less than a preset value, that the time consumption evaluation result of the to-be-evaluated application includes an estimated time consumption of the to-be-evaluated application based on the mean value of the time consumption corresponding to at least one of the plurality of preset computing resources.
[0021] In a possible implementation, the statistical parameters include a probability distribution function; and the probability distribution function is used to represent a probability of the time consumption of the to-be-evaluated application running on the preset computing resource.
[0022] In a possible implementation, the statistical parameters further include a variance of the time consumption; and the determining unit is further configured to determine, in a case where the variance of the time consumption corresponding to at least one of the plurality of preset computing resources is greater than or equal to a preset value, that the time consumption evaluation result of the to-be-evaluated application includes an estimated time consumption of the to-be-evaluated application based on a time consumption interval corresponding to a wave crest of the probability distribution function corresponding to the at least one preset computing resource, if the probability distribution function corresponding to the at least one preset computing resource has the wave crest.
[0023] In a possible implementation, the statistical parameters further include a variance of the time consumption; and the determining unit is further configured to determine, in a case where the variance of the time consumption corresponding to at least one of the plurality of preset computing resources is greater than or equal to a preset value, that the time consumption evaluation result of the to-be-evaluated application is that the time consumption of the to-be-evaluated application cannot be estimated, if the probability distribution function corresponding to the at least one preset computing resource is a straight line or a discrete distribution.
[0024] In a possible implementation, the statistical parameters include a fitting polynomial function; and the fitting polynomial function is determined based on the time consumption corresponding to each of the plurality of preset computing resources and the number of running parameters included in each of the plurality of preset computing resources.
[0025] In a possible implementation, the statistical parameters further include a variance of the time consumption and a mean value of the time consumption; and the determining unit is further configured to determine, in a case where the variance of the time consumption corresponding to at least one of the plurality of preset computing resources is greater than or equal to a preset value, that the time consumption evaluation result of the to-be-evaluated application includes an estimated time consumption of the to-be-evaluated application based on the mean value of the time consumption corresponding to the at least one preset computing resource and the fitting polynomial functions corresponding to at least two of the plurality of preset computing resources, if the fitting polynomial functions corresponding to the at least two of the plurality of preset computing resources are the same.
[0026] In a possible implementation, the statistical parameters further include variances of the time consumption; and the determining unit is further configured to, in a case where the variance of the time consumption corresponding to at least one of the preset computing resources is greater than or equal to a preset value, determine that the time consumption evaluation result of the to-be-evaluated application is that the time consumption of the to-be-evaluated application cannot be estimated, if the fitting polynomial functions corresponding to each of the preset computing resources are different.
[0027] In a possible implementation, the determining unit is further configured to determine the time consumption evaluation result based on the performance parameters of the to-be-evaluated application, the performance parameters of the preset computing resources, and the statistical parameters corresponding to the preset computing resources, wherein the performance parameters include at least one of a processor operation speed, a processor core number, and a memory capacity.
[0028] In a third aspect, an electronic device is provided, including a processor and a memory; the memory is configured to store one or more programs including computer execution instructions; when the electronic device is running, the processor executes the computer execution instructions stored in the memory, so that the electronic device executes the application time consumption evaluation method 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 including instructions that, when executed by a computer, cause the computer to perform the application time consumption evaluation method in the first aspect.
[0030] In a fifth aspect, a computer program product is provided, when computer instructions are executed on an electronic device, the electronic device executes the application time consumption evaluation method in the first aspect.
[0031] The application provides an application time consumption evaluation method, device, equipment, storage medium and program product, which are applied to the scene of application time consumption evaluation. When it is necessary to evaluate the time consumption of a to-be-evaluated application running based on computing resources, the time consumption of the to-be-evaluated application running based on preset computing resources under each of a plurality of running parameter groups corresponding to the to-be-evaluated application can be determined. Further, the time consumption of each running parameter group is evaluated to determine the time consumption evaluation result of the to-be-evaluated application. That is, in general, the running parameters of the to-be-evaluated application change, and the change of the running parameters affects the time consumption of the to-be-evaluated application running based on computing resources. Therefore, the time consumption can be evaluated according to a plurality of running parameter groups. Through the above method, the time consumption of the to-be-evaluated application can be evaluated according to the time consumption corresponding to the running parameters of the to-be-evaluated application, and the time consumption evaluation result of the to-be-evaluated application is determined. Thus, the technical problem that the time consumption of the computing network application running based on the computing resources in the industrial field cannot be evaluated, and the user cannot determine whether the computing network application matches the computing resources in the field is solved. BRIEF DESCRIPTION OF DRAWINGS
[0032] Figure 1 A structural schematic diagram of an application time-consuming evaluation system is provided for an embodiment of the present application.
[0033] Figure 2 A structural schematic diagram of an evaluation system of an electronic device is provided for an embodiment of the present application.
[0034] Figure 3 A flowchart of an application time-consuming evaluation method is provided for an embodiment of the present application. Figure 1 ;
[0035] Figure 4 A flowchart of an application time-consuming evaluation method is provided for an embodiment of the present application. Figure 2 ;
[0036] Figure 5 A flowchart of an application time-consuming evaluation method is provided for an embodiment of the present application. Figure 3 ;
[0037] Figure 6 A flowchart of an application time-consuming evaluation method is provided for an embodiment of the present application. Figure 4 ;
[0038] Figure 7 A flowchart of an application time-consuming evaluation method is provided for an embodiment of the present application. Figure 5 ;
[0039] Figure 8 A flowchart of an application time-consuming evaluation method is provided for an embodiment of the present application. Figure 6 ;
[0040] Figure 9 A flowchart of an application time-consuming evaluation method is provided for an embodiment of the present application. Figure 7 ;
[0041] Figure 10 A flowchart of an application time-consuming evaluation method is provided for an embodiment of the present application. Figure 8 ;
[0042] Figure 11 A structural schematic diagram of an application time-consuming evaluation device is provided for an embodiment of the present application.
[0043] Figure 12 A structural schematic diagram of an electronic device is provided for an embodiment of the present application. DETAILED DESCRIPTION
[0044] The technical solutions in the embodiments of the present application will be described below with reference to the drawings in the embodiments of the present application.
[0045] In the description of the present application, unless otherwise specified, " / " means the meaning of "or", for example, A / B can mean A or B. "And / or" herein is only a description of the relationship between the associated objects, which means that there can be three relationships, for example, A and / or B, which can mean that A exists alone, A and B exist together, and B exists alone. In addition, "at least one" "multiple" means two or more. "First", "second", etc. do not limit the quantity and execution order, and "first", "second", etc. do not necessarily mean different.
[0046] The existing industrial computing power network application (such as library, platform, etc.) lacks an evaluation method for the computing power resources required by the industrial field computing power network application, or related modules, which cannot estimate the time consumption of the industrial field computing power network application based on the computing power resources in the field when running, and thus the user cannot evaluate whether the computing power network application matches the computing power resources according to the time consumption of the computing power network application. That is, the longer the time consumption of the computing power network application, the less the computing power resources in the field, and the shorter the time consumption of the computing power network application, the more the computing power resources in the field. Therefore, when selecting the computing power network application in the industrial field, the industrial enterprise will have the following doubts: 1. Does the selected computing power network application in the industrial field exceed the existing field computing power resources? 2. How to select the computing power network application according to the existing computing power resources in the field. 3. How to select the field computing power resources according to the required computing power network application.
[0047] To solve the above problems, the present application provides an application time consumption evaluation method, which is aimed at the computing power network application in the industrial field, and provides a method for quantitatively describing the consumption of computing power network application to the computing power resources for the industrial enterprise. It can be applied in the industrial computing power network resource service system as a service provided for the industrial enterprise to provide services for the industrial enterprise to select the field computing power network application or the field computing power resources (or facilities).
[0048] The application time consumption evaluation method provided by the embodiment of the present application can be applied to an application time consumption evaluation system. Figure 1 A structural schematic diagram of an application time consumption evaluation system is shown. As shown in Figure 1 The application time consumption evaluation system 10 includes: an industrial device 11, an electronic device 12. The industrial device 11 and the electronic device 12 can be connected by wired or wireless connection, and the embodiment of the present application does not limit this.
[0049] The industrial device 11 is used to run the application to be evaluated; the electronic device 12 is used to determine the time consumption corresponding to each running parameter group in a plurality of running parameter groups of the application to be evaluated, and perform time consumption evaluation based on the time consumption corresponding to each running parameter group, to determine the time consumption evaluation result of the application to be evaluated.
[0050] Optionally, the industrial equipment 11 is located at the industrial enterprise side, and the industrial equipment 11 can be the computing power infrastructure of the industrial site. The industrial equipment 11 can obtain the image and evaluation parameters (i.e., running parameters) of the to-be-evaluated application through an application, pack the image and running parameters of the to-be-evaluated application, upload them to the evaluation system of the electronic device 12, bind the to-be-evaluated application and the industrial enterprise applying for evaluation, receive the time-consuming evaluation result (also referred to as test result) of the to-be-evaluated application by the evaluation system of the electronic device 12, save it, and assist the industrial enterprise in utilizing the time-consuming evaluation result. The time-consuming evaluation result can be the time consumption of the to-be-evaluated application that cannot be estimated, and the estimated time consumption of the to-be-evaluated application when the time consumption of the to-be-evaluated application can be estimated.
[0051] Specifically, the specific implementation method of the industrial equipment 11 can be as follows: 1. The industrial equipment 11 can pull the image of the computing power network application (i.e., to-be-evaluated application) in the image library of the industrial site through an application to complete the acquisition of the image of the to-be-evaluated application. The industrial equipment 11 can read the evaluation parameters provided by the to-be-evaluated application through an application, or provide an interface for the industrial enterprise to input the evaluation parameters, to obtain the parameters required when evaluating the application.
[0052] 2. The industrial equipment 11 can obtain the network address of the industrial enterprise through a preset document structure through an application, and use the network address as the address for receiving the time-consuming evaluation result. The network address refers to the communication address that can be exposed to the outside by the industrial enterprise. The preset document structure can be a document structure designed for the application time-consuming evaluation system. The preset document structure can include: network address + application name + version number + parameter description + test parameter + application image + verification. The network address is the communication address that can be exposed to the outside by the industrial enterprise. The application name can be the application name of the to-be-evaluated application, which can be in the form of a string, and the length of the application name can be limited (e.g., 64 bits). The version number is the version number of the to-be-evaluated application, which can be in the form of a string, and the length of the version number can be limited (e.g., 64 bits).
[0053] Parameter description + test parameter is a data structure provided by the application, including: the number of running parameter groups, the number of running parameters (array), running parameter name (array), running parameter value (array). Among them, the number of running parameter groups is a positive number, which should be greater than or equal to 2. For example, 2 groups of running parameter groups are provided, the first running parameter group includes 2 running parameters, and the second running parameter group includes 3 running parameters, so the parameter description is: the number of running parameter groups: 2. The number of running parameters: [2, 3]. Running parameter name: [name11, name12; name21, name22, name23]. Running parameter value: [var11, var12; var21, var22, var23]. When the application program of the industrial equipment 11 is verified, the verification method supported by the evaluation system of the electronic device 12 (such as md5) can be selected.
[0054] 3. The industrial equipment 11 can save in the industrial field (local) after receiving the time-consuming evaluation result sent by the evaluation system of the electronic device 12 through the application program.
[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 run in the machine room of the operator and the large cloud computing resource provider. The architecture of the evaluation system of the electronic device 12 is shown in Figure 2 The evaluation system can 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-consuming evaluation task according to the time sequence of the received file. The scheduler is responsible for arranging the computing power resources required by the to-be-evaluated application in the application time-consuming evaluation task. The controller is responsible for associating the to-be-evaluated application, the running parameter and the computing power resource used for testing, and recording the test start time, the end time and the test result. The responder is responsible for transmitting the test result back to the industrial enterprise side.
[0056] Next, an application time-consuming evaluation method provided by the embodiment of the application will be described in conjunction with the drawings. As shown in Figure 3 The application time-consuming evaluation method provided by the embodiment of the application is applied to an electronic device, and the method comprises S201-S202:
[0057] S201, determining the time-consuming corresponding to each running parameter group in the plurality of running parameter groups of the to-be-evaluated application.
[0058] Among them, the time-consuming corresponding to the target running parameter group is the time length consumed by the to-be-evaluated application based on the preset computing power resource under the target running parameter group; the target running parameter group is any running parameter group in the plurality of running parameter groups.
[0059] Optionally, if the industrial enterprise of the industrial site needs to evaluate the time length consumed by the to-be-evaluated application when running based on the computing resource, the industrial enterprise can send an evaluation task for indicating the time length evaluation of the to-be-evaluated application to the evaluation system of the electronic device. Further, the evaluation system of the electronic device can obtain a plurality of running parameter groups of the to-be-evaluated application, and under each running parameter group of the plurality of running parameter groups, obtain a time length corresponding to each running parameter group by running the to-be-evaluated application based on the preset computing resource.
[0060] Each running parameter group of the plurality of running parameter groups of the to-be-evaluated application can include a historical running parameter recorded when the to-be-evaluated application runs in the industrial site, or can be a running parameter set by the industrial enterprise according to its own needs.
[0061] For example, the running parameter included in the running parameter group can be a parameter such as voltage and current. Assuming that the plurality of running parameter groups are n (n is an integer greater than 1) running parameter groups, which are running parameter group 1, running parameter group 2, …, and running parameter group n. Assuming that under the running parameter group 1, the evaluation system of the electronic device can run the to-be-evaluated application based on the preset computing resource, and record a time length t1, then the time length corresponding to the running parameter group 1 is t1. Assuming that under the running parameter group 2, the evaluation system of the electronic device can run the to-be-evaluated application based on the preset computing resource, and record a time length t2, then the time length corresponding to the running parameter group 2 is t2. Similarly, assuming that under the running parameter group n, the evaluation system of the electronic device can run the to-be-evaluated application based on the preset computing resource, and record a time length tn, then the time length corresponding to the running parameter group n is tn. n n .
[0062] S202, performing time length evaluation based on the time length corresponding to each running parameter group to determine a time length evaluation result of the to-be-evaluated application.
[0063] Optionally, the evaluation system of the electronic device can perform time length evaluation based on the time length corresponding to each running parameter group to determine a time length evaluation result of the to-be-evaluated application. The time length evaluation result can include an estimated time length of the to-be-evaluated application, or the time length evaluation result can be that the time length of the to-be-evaluated application cannot be estimated. This is because the influence of the running parameter on the time length of the to-be-evaluated application can be irregular, and when the influence of the running parameter on the time length of the to-be-evaluated application is irregular, the accuracy of calculating the time length based on the running parameter is poor, so at this time it can be determined that the time length of the to-be-evaluated application cannot be estimated, so as to avoid that the time length error obtained by the user is large and misleads the user.
[0064] When the influence of the running parameters on the time consumption of the to-be-evaluated application is regular, and the accuracy of calculating the time consumption according to the running parameters is high, the estimated time consumption of the to-be-evaluated application can be calculated. Moreover, the more the number of the running parameter groups is, the more accurate the time consumption evaluation result is.
[0065] For example, the evaluation system of the electronic device can determine the time consumption evaluation result based on t1, t2, …, t n , and determine the time consumption evaluation result.
[0066] Further, the controller of the evaluation system of the electronic device packs the file including the time consumption evaluation result, the address of the user (i.e., the address of the industrial equipment in the industrial field), the application name (i.e., the name of the to-be-evaluated application), the version number, and the parameter description + test parameters, and delivers them to the transponder of the evaluation system of the electronic device. The transponder sends the packed file including the time consumption evaluation result to the industrial equipment in the industrial field. Further, the industrial equipment can save the packed file including the time consumption evaluation result locally.
[0067] Further, the user in the industrial field can query the time consumption evaluation result locally by the application name + version number. If the user thinks that the estimated time consumption of the to-be-evaluated application in the time consumption evaluation result is too long, the user can increase the computing resources for running the to-be-evaluated application in the industrial field. If the user thinks that the estimated time consumption of the to-be-evaluated application in the time consumption evaluation result is too short, the user can reduce the computing resources for running the to-be-evaluated application in the industrial field to meet the user's own needs.
[0068] It should be noted that the specific description of how to perform time consumption evaluation based on the time consumption corresponding to each running parameter group to determine the time consumption evaluation result of the to-be-evaluated application can refer to the following embodiments, which will not be repeated here.
[0069] The calculation of the estimated time consumption of the to-be-evaluated application can also be completed by the application program of the industrial equipment, which is not limited in the present embodiment.
[0070] In one design, as shown in Figure 4 , the application time consumption evaluation method provided by the present embodiment includes the following steps S201-S202:
[0071] S301, determining the statistical parameters corresponding to the preset computing power resources based on the time consumption corresponding to each running parameter group.
[0072] Optionally, the evaluation system of the electronic device can determine the statistical parameter corresponding to the preset computing resource (i.e., the statistical parameter of the application time consumption under the preset computing resource) based on the time consumption corresponding to each running parameter group. The statistical parameter can represent the variation trend of the time consumption corresponding to each running parameter group. The statistical parameter can be the mean value, variance, etc. of the time consumption corresponding to each running parameter group. The variation trend of the time consumption corresponding to each running parameter group can reflect whether the running parameter has an impact on the time consumption of the application to be evaluated and whether the impact is regular.
[0073] S302, determining the time consumption evaluation result of the application to be evaluated based on the statistical parameter corresponding to the preset computing resource.
[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 parameter corresponding to the preset computing resource. When the running parameter has no impact on the time consumption of the application to be evaluated or the impact is regular, the estimated time consumption of the application to be evaluated can be calculated according to the statistical parameter.
[0075] The application can determine the statistical parameter corresponding to the computing resource according to the time consumption of the running parameter corresponding to the computing resource, which facilitates subsequent judgment of whether the running parameter has an impact on the time consumption of the application to be evaluated and whether the impact is regular based on the statistical parameter, so as to obtain the corresponding time consumption evaluation result.
[0076] In one possible implementation, the preset computing resource includes a plurality of preset computing resources; and the statistical parameter corresponding to each preset computing resource is used to represent the running state data of the application to be evaluated running under different running parameter groups under the preset computing resource.
[0077] For example, it is assumed that the plurality of preset computing resources are two preset computing resources, namely, preset computing resource 1 and preset computing resource 2. Then, it is assumed that the time consumption corresponding to the running parameter group 1 corresponding to the preset computing resource 1 is t 11 , the time consumption corresponding to the running parameter group 2 is t 12 , and so on, and the time consumption corresponding to the running parameter group n is t 1n . At this time, the mean value (i.e., T1) corresponding to the preset computing resource 1 is the mean value of t 11 , t 12 , …, and t 1n . The variance (i.e., D1) corresponding to the preset computing resource 1 is the variance of t 11 , t 12 , …, and t 1n .
[0078] It is assumed that the time consumption corresponding to the running parameter group 1 corresponding to the preset computing resource 2 is t 21 , the time consumption corresponding to the running parameter group 2 is t 22, and so on, the time consumption corresponding to the parameter group n is t 2n At this time, the average value of the time consumption corresponding to the preset computing resource 2 (i.e., 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 the variance of t 21 , t 22 , …, and t 2n .
[0079] According to the statistical parameters corresponding to the plurality of preset computing resources, the application can determine the time consumption evaluation result of the application to be evaluated, that is, the more the number of preset computing resources, the higher the accuracy of the time consumption evaluation result.
[0080] In one design, as shown in Figure 5 , the application provides a method for evaluating the time consumption of an application, and the statistical parameters include the variance of the time consumption and the average value of the time consumption. The method in step S302 includes the following steps:
[0081] S401, in the case that the variance of the time consumption corresponding to each of the plurality of preset computing resources is less than a preset value, determining the time consumption evaluation result of the application to be evaluated based on the average value of the time consumption corresponding to at least one of the plurality of preset computing resources, the time consumption evaluation result including the estimated time consumption of the application to be evaluated.
[0082] Optionally, the evaluation system of the electronic device can determine whether the variance of the time consumption corresponding to each of the plurality of preset computing resources is less than a preset value. Further, when it is determined that the variance of the time consumption corresponding to each of the plurality of preset computing resources is less than a preset value, the evaluation system of the electronic device can consider that the application to be evaluated is a parameter number influence constant type application, which means that the number or value of the running parameters included in each running parameter group of the application has little effect on the time consumption of the application based on the computing resource.
[0083] If the user selects the application, the time length for the application to complete the calculation will not change too much due to the increase or decrease of the number or value of the running parameters included in each running parameter group. Therefore, the evaluation system of the electronic device can determine the estimated time consumption based on the average value of the time consumption corresponding to at least one of the plurality of preset computing resources. This method for calculating the estimated time consumption can be referred to as a first method for calculating the estimated time consumption.
[0084] For example, if D1 and D2 are less than a preset value, the estimated time consumption can be estimated from T1 or T2. The estimated time consumption can also be estimated from the average value of T1 and T2.
[0085] Optionally, if the user wants to complete the running of the to-be-evaluated application within a given time length, the existing computing power resources on site can be adjusted based on the first method of estimating the time length.
[0086] The application can estimate the time length of the application based on the average time length when the number or value of the running parameters included in each running parameter group does not affect the time length of the application running based on the computing power resources. That is, if the number or value of the running parameters does not affect the time length, the average time length can represent the time length of the application, thereby improving the accuracy of estimating the time length of the application.
[0087] In a possible implementation, the statistical parameter includes a probability distribution function (which can also be referred to as a fitted distribution function); the probability distribution function is used to represent the time length probability of running the to-be-evaluated application based on the preset computing power resources.
[0088] Optionally, in the case where the values of the running parameters included in each running parameter group corresponding to the preset computing power resources are different, the evaluation system of the electronic device can obtain the time length corresponding to each running parameter group in the plurality of running parameter groups corresponding to the preset computing power resources, and determine the probability (i.e., the time length probability of running the to-be-evaluated application based on the preset computing power resources) of each different time length according to the number of the plurality of running parameter groups. That is, the different values of the running parameters included in different running parameter groups affect the time length of the application running based on the computing power resources, and the probability distribution function can reflect the manifestation of the influence of the different values of the running parameters included in the running parameter groups on the time length of the application running based on the computing power resources. The manifestation of the influence can be convergence or divergence.
[0089] The application can determine the probability distribution function corresponding to the preset computing power resources, facilitate subsequent determination of the manifestation of the influence of the change in the value of the running parameter on the time length according to the probability distribution function, calculate the time length of the to-be-evaluated application according to the probability distribution function when the influence is convergence, and return a message that the time length of the to-be-evaluated application cannot be calculated when the influence is divergence, thereby improving the accuracy of estimating the time length of the application.
[0090] For example, the probability distribution function corresponding to the preset computing power resource 1 is f(x1), and x is a positive integer. The probability distribution function corresponding to the preset computing power resource 2 is f(x2).
[0091] In one design, as shown in Figure 6 The application embodiment provides an application time length evaluation method, and the statistical parameter further includes the variance of the time length; the method in the step S302 includes the following step S501:
[0092] S501, in a case where a variance of a time consumption corresponding to at least one preset computing resource in a plurality of preset computing resources is greater than or equal to a preset value, if a probability distribution function corresponding to the at least one preset computing resource has a wave crest, a time consumption evaluation result of the to-be-evaluated application is determined to include an estimated time consumption of the to-be-evaluated application based on a time consumption interval corresponding to the wave crest.
[0093] Optionally, in a case where a variance corresponding to at least one preset computing resource in a plurality of preset computing resources is greater than or equal to a preset value, an evaluation system of the electronic device can determine the estimated time consumption based on a probability distribution function corresponding to the at least one preset computing resource. When the variance corresponding to the at least one preset computing resource is greater than or equal to the preset value, it indicates that the change of the values of the running parameters included in each running parameter group will affect the time consumption of the application when the application runs based on the computing resource.
[0094] In a case where the probability distribution function corresponding to the at least one preset computing resource has a wave crest, 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 wave crest (the upper limit is Tu and the lower limit is Td). The wave crest of the probability distribution function means that the data of a specified probability are located in a certain interval. For example, the specified probability is 90%, and there are 10 running parameter groups in total. When the time consumptions corresponding to 9 running parameter groups of the 10 parameters are located in the interval of 5s to 7s, the probability distribution function has a wave crest, and the time consumption interval corresponding to the wave crest is 5s to 7s. 5s is the lower limit of the interval, and 7s is the upper limit of the interval.
[0095] The wave crest of the probability distribution function indicates that the influence of the values of the running parameters on the consumption of the computing resource of the application is convergent. When the change of the values of the running parameters affects the time consumption, the influence is within a range (that is, the time consumptions corresponding to most running parameter groups are the same, that is, a certain time consumption has a higher probability). Therefore, 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 wave crest. This method of calculating the estimated time consumption can be referred to as a second method of calculating the estimated time consumption.
[0096] For example, if D1 and / or D2 is greater than or equal to the preset value, and f(x1) has a wave crest, 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 wave crest of f(x1).
[0097] Optionally, if the user wants to complete the running of the to-be-evaluated application within a given time length, the existing computing resource can be adjusted based on the second method of calculating the estimated time consumption.
[0098] The 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 of the value of the running parameter has an impact on the time consumption, and the impact is divergent, so as to improve the accuracy of the estimated time consumption of the application.
[0099] In one design, as shown in FIG. 1, Figure 7 The statistical parameters also include the variance of the time consumption, and the method in step S302 includes the following step S601.
[0100] In the case where the variance of the time consumption corresponding to at least one of the preset computing resources is greater than or equal to the preset value, if the probability distribution function corresponding to the at least one of the preset computing resources 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.
[0101] Optionally, in the case where the variance of the time consumption corresponding to at least one of the preset computing resources is greater than or equal to the preset value, if the probability distribution function corresponding to the at least one of the preset computing resources 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 referred to as sporadic distribution), which indicates that the change of the value of the running parameter has an impact on the time consumption, and the impact is divergent, which indicates that the estimated time consumption of the application to be evaluated cannot be calculated according to the time consumption corresponding to different values of the running parameter when the user uses the application.
[0102] The application can determine that the time consumption of the application to be evaluated cannot be estimated when the change of the value of the running parameter has an impact on the time consumption, but the impact is divergent, so as to avoid that the estimated time consumption of the application to be evaluated calculated according to the probability distribution function is inaccurate and misleading to the user.
[0103] In one possible implementation, the statistical parameters include a fitting polynomial function, and the fitting polynomial function is determined based on the time consumption corresponding to each running parameter group of the preset computing resource and the number of running parameters included in each running parameter group of the preset computing resource.
[0104] Optionally, in a case where the number of running parameters included in each running parameter group corresponding to the preset computing resource is different, the evaluation system of the electronic device can fit the preset influence function based on the time consumption corresponding to each running parameter group corresponding to the preset computing resource and the number of running parameters included in each running parameter group corresponding to the preset computing resource, to determine the fitted polynomial function corresponding to the preset computing resource. That is, the different number of running parameters included in different running parameter groups will affect the time consumption of running the application based on the computing resource, and the fitted polynomial function can reflect whether there is a rule for the influence of the different number of running parameters included in the running parameter group on the time consumption of running the application based on the computing resource.
[0105] For example, the number of running parameters included in the running parameter group 1 is 2, and the number of running parameters included in the running parameter group 2 is 3. The fitted polynomial function corresponding to the preset computing resource 1 is f(y1), y is a positive integer, and y is the number of running parameters. The probability distribution function corresponding to the preset computing resource 2 is f(y2).
[0106] By determining the fitted polynomial function corresponding to the preset computing resource, the application can facilitate subsequent determination of whether there is a rule for the influence of the change of the number of running parameters on the time consumption, so as to calculate the time consumption of the application to be evaluated according to the fitted polynomial function when there is a rule, and return a message that the time consumption of the application to be evaluated cannot be calculated when there is no rule, thereby improving the accuracy of the estimated time consumption of the application.
[0107] In one design, as shown in Figure 8 The application embodiment provides an application time consumption evaluation method, and the statistical parameters further include a variance of the time consumption and a mean value of the time consumption; the step S302 specifically includes the following step S701.
[0108] S701, in a case where the variance of the time consumption corresponding to at least one preset computing resource in the plurality of preset computing resources is greater than or equal to a preset value, if the fitted polynomial functions corresponding to at least two preset computing resources in the plurality of preset computing resources are the same, the evaluation result of the application to be evaluated is determined to include the estimated time consumption of the application to be evaluated based on the fitted polynomial functions corresponding to the at least two preset computing resources and the mean value of the time consumption corresponding to the at least one preset computing resource.
[0109] Optionally, in a case that the variance corresponding to at least one of the plurality of preset computing resources is greater than or equal to the preset value, the evaluation system of the electronic device can compare the fitting polynomial functions corresponding to at least two of the plurality of preset computing resources. If the fitting polynomial functions corresponding to the two preset computing resources are the same, the evaluation result of the time consumption of the to-be-evaluated application is determined based on the fitting polynomial functions corresponding to the two preset computing resources and the average value of the time consumption corresponding to the at least one preset computing resource, and the estimated time consumption of the to-be-evaluated application is determined.
[0110] That is, when the variance corresponding to at least one preset computing resource is greater than or equal to the preset value, it indicates that the change in the number of running parameters included in each running parameter group when the user uses the application will affect the time consumption of the application when it is running based on the computing resource. If the fitting polynomial functions corresponding to two preset computing resources are the same, it indicates that the application is a parameter number polynomial impact type application, and the change in the number of running parameters will regularly affect the time consumption when the user uses the application. Then, if the user selects the 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 resources and the average value of the preset computing resource. This method for calculating the estimated time consumption can be referred to as a third method for calculating the estimated time consumption.
[0111] For example, if D1 and / or D2 is greater than or equal to the preset value, and f(y1) is the same as f(y2), 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 running of the to-be-evaluated application within a given time length, the existing computing resource on site can be adjusted based on the third method for calculating the estimated time consumption.
[0113] The application can calculate the estimated time consumption according to the fitting polynomial function when the change in the number of running parameters has an impact on the time consumption and the impact is regular, thereby improving the accuracy of the estimated time consumption of the application.
[0114] In one design, as shown in FIG. 8, Figure 9 The application embodiment provides an application time consumption evaluation method, and the statistical parameters further include the variance of the time consumption; the method in the step S302 specifically includes the following step S801:
[0115] S801, in a case that the variance of the time consumption corresponding to at least one of the plurality of preset computing resources is greater than or equal to the preset value, if the fitting polynomial functions corresponding to each of the plurality of preset computing resources are different, the evaluation result of the time consumption of the to-be-evaluated application is determined as the time consumption of the to-be-evaluated application cannot be estimated.
[0116] Optionally, in a case where the variance corresponding to at least one of the plurality of preset computing power resources is greater than or equal to the preset value, if the fitting polynomial functions corresponding to each of the plurality of preset computing power resources are 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, if the fitting polynomial functions corresponding to each of the preset computing power resources are different, it means that the application is a parameter quantity-affected irregular application. The parameter quantity-affected irregular application means that when the user uses the application, the change in the number of running parameters has no regularity on the time consumption, that is, the estimated time consumption of the application to be evaluated cannot be calculated according to the time consumption corresponding to the number of different running parameters.
[0117] The application can estimate the time consumption of the application to be evaluated when the change in the number of running parameters has an impact on the time consumption, but the impact is irregular, so as to avoid that the estimated time consumption of the application to be evaluated calculated according to the fitting polynomial function is inaccurate and misleads the user.
[0118] In one design, as shown in Figure 10 The application embodiment provides an application time consumption evaluation method, and the step S302 specifically includes:
[0119] S901, determining the time consumption evaluation result based on the performance parameter of the on-site computing power resource of the application to be evaluated, the performance parameter of the preset computing power resource, and the statistical parameter corresponding to the preset computing power resource.
[0120] The performance parameter includes at least one of the following: processor operation speed, processor core number, and memory capacity.
[0121] Optionally, the processor (i.e., Central Processing Unit (CPU)) operation speed can be the floating point operation per second (FLOPS) of the CPU.
[0122] The evaluation system of the electronic device can determine the estimated time consumption based on the performance parameter of the on-site computing power resource of the application to be evaluated, the performance parameter of the preset computing power resource, and the time consumption corresponding to each running 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 power resource performance (which can also be referred to as the performance parameter of the on-site computing power resource) / preset computing power resource 1 performance (which can also be referred to as the performance parameter of the preset computing power resource 1)) * T1, or (user computing power resource performance / computing power resource 2 performance) * T2. The performance parameter of the on-site computing power resource is the performance parameter of the computing power resource on the industrial enterprise side. The preset computing power resource is the performance parameter of the computing power resource on the evaluation system side.
[0123] In the second method for calculating the estimated time consumption, the estimated time consumption can be obtained by (user computing resource performance / computing resource 1 performance) *Td, (user computing resource performance / computing resource 1 performance) *Tu.
[0124] In 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 for calculating the time consumption, such as the average value of the time consumption, the upper and lower limits of the interval of the probability distribution function, and the fitting polynomial function, are obtained based on the computing resources of the evaluation system side, and the performance parameters of the computing resources of the evaluation system side and the computing resources of the industrial enterprise side are different, multiplying the parameters for calculating the time consumption by the ratio of the performance parameters of the computing resources of the industrial enterprise side to the performance parameters of the computing resources of the evaluation system side can offset the difference between the performance parameters of the computing resources of the evaluation system side and the computing resources of the industrial enterprise side, and ensure the accuracy of the estimated time consumption obtained by the user.
[0126] The above describes the solutions provided by the embodiments of the present application from the perspective of methods. To implement the above functions, the embodiments of the present application include hardware structures and / or software modules corresponding to the functions. Those skilled in the art should easily realize that, in combination with the units and algorithm steps of the examples described in the embodiments disclosed herein, the embodiments of the present application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a certain function is implemented in the form of hardware or computer software driving hardware depends on the specific application of the technical solutions and design constraints. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of the present application.
[0127] The embodiments of the present application can divide a function module of an application time consumption evaluation method according to the above method examples. For example, each function module can be divided according to each function, or two or more functions can be integrated in one processing module. The integrated module can be implemented in the form of hardware or software function module. Optionally, the division of the modules in the embodiments of the present application is illustrative, and is only a logical function division. In actual implementation, another division method can be used.
[0128] Figure 11 A structure diagram of an application time consumption evaluation device provided by the embodiments of the present application is shown in FIG. 1. Figure 11As shown in a possible implementation, an application time consumption evaluation device 100 is used to evaluate time consumption of an industrial field application running on a field-based computing power resource, for example, for executing Figure 3 As shown in a possible implementation, an application time consumption evaluation method. The application time consumption evaluation device 100 comprises a determination unit 1001.
[0129] The determination unit 1001 is configured to determine a time consumption corresponding to each of a plurality of running parameter groups of a to-be-evaluated application; the time consumption corresponding to a target running parameter group is a time length consumed by the to-be-evaluated application running on a preset computing power resource under the target running parameter group; and the target running parameter group is any one of the plurality of running parameter groups.
[0130] The determination unit 1001 is further configured to perform time consumption evaluation based on the time consumption corresponding to each of the running parameter groups, and determine a time consumption evaluation result of the to-be-evaluated application.
[0131] In a possible implementation, the determination unit 1001 is further configured to determine a statistical parameter corresponding to the preset computing power resource based on the time consumption corresponding to each of the running parameter groups; and the determination unit 1001 is further configured to determine the time consumption evaluation result of the to-be-evaluated application based on the statistical parameter corresponding to the preset computing power resource.
[0132] In a possible implementation, the preset computing power resource comprises a plurality of preset computing power resources; and the statistical parameter corresponding to each of the preset computing power resources is used to represent running state data of the to-be-evaluated application running under the preset computing power resource according to different running parameter groups.
[0133] In a possible implementation, the statistical parameter comprises a variance of the time consumption and an average value of the time consumption; and the determination unit 1001 is further configured to, in a case where the variance of the time consumption corresponding to each of the preset computing power resources is less than a preset value, determine the time consumption evaluation result of the to-be-evaluated application to comprise an estimated time consumption of the to-be-evaluated application based on the average value of the time consumption corresponding to at least one of the preset computing power resources.
[0134] In a possible implementation, the statistical parameter comprises a probability distribution function; and the probability distribution function is used to represent a time consumption probability of the to-be-evaluated application running on the preset computing power resource.
[0135] In a possible implementation, the statistical parameter further comprises a variance of the time consumption; and the determination unit 1001 is further configured to, in a case where the variance of the time consumption corresponding to at least one of the preset computing power resources is greater than or equal to a preset value, determine the time consumption evaluation result of the to-be-evaluated application to comprise the estimated time consumption of the to-be-evaluated application based on a time consumption interval corresponding to a wave crest of the probability distribution function corresponding to the at least one of the preset computing power resources, if the wave crest exists.
[0136] In a possible implementation, the statistical parameter further includes a variance of the time consumption; and the determining unit 1001 is further configured to, in a case where the variance of the time consumption corresponding to at least one of the preset computing resources is greater than or equal to a preset value, determine that the time consumption evaluation result of the to-be-evaluated application is that the time consumption of the to-be-evaluated application cannot be estimated, if the probability distribution function corresponding to the at least one of the preset computing resources is a straight line or a discrete distribution.
[0137] In a possible implementation, the statistical parameter includes a fitted polynomial function; and the fitted polynomial function is determined based on the time consumption corresponding to each set of running parameters of the preset computing resource and the number of running parameters included in each set of running parameters of the preset computing resource.
[0138] In a possible implementation, the statistical parameter further includes a variance of the time consumption and a mean value of the time consumption; and the determining unit 1001 is further configured to, in a case where the variance of the time consumption corresponding to at least one of the preset computing resources is greater than or equal to a preset value, determine that the time consumption evaluation result of the to-be-evaluated application includes an estimated time consumption of the to-be-evaluated application, if the fitted polynomial functions corresponding to at least two of the preset computing resources are the same, based on the fitted polynomial functions corresponding to the at least two of the preset computing resources and the mean value of the time consumption corresponding to the at least one of the preset computing resources.
[0139] In a possible implementation, the statistical parameter further includes a variance of the time consumption; and the determining unit 1001 is further configured to, in a case where the variance of the time consumption corresponding to at least one of the preset computing resources is greater than or equal to a preset value, determine that the time consumption evaluation result of the to-be-evaluated application is that the time consumption of the to-be-evaluated application cannot be estimated, if the fitted polynomial functions corresponding to each of the preset computing resources are different.
[0140] In a possible implementation, the determining unit 1001 is further configured to determine the time consumption evaluation result based on the performance parameter of the to-be-evaluated application, the performance parameter of the preset computing resource, and the statistical parameter corresponding to the preset computing resource; and the performance parameter includes at least one of the following: a processor operation speed, a processor core number, and a memory capacity.
[0141] In a case where the functions of the above-described integrated modules are implemented in the form of hardware, the embodiment of the present application provides a possible structural diagram of an electronic device involved in the above-described embodiments. As shown in Figure 12 An electronic device 120 is configured to evaluate a time consumption of an industrial field computing power network application running based on a field computing resource, for example, to execute 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 can be connected through the bus 1203.
[0142] The processor 1201 is a control center of the communication device, which can be one processor or a general term of multiple processing elements. For example, the processor 1201 can be a general central processing unit (CPU), or other general-purpose processors, etc. The general-purpose processor can be a microprocessor or any conventional processor, etc.
[0143] As an embodiment, the processor 1201 can include one or more CPUs, such as the CPU 0 and the CPU 1 shown in FIG. 1. Figure 12
[0144] The memory 1202 can 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 magnetic 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 that can be accessed by a computer, but is not limited to this.
[0145] As a possible implementation, the memory 1202 can exist independently of the processor 1201. The memory 1202 can be connected to the processor 1201 through the bus 1203, for storing instructions or program code. When the processor 1201 invokes and executes the instructions or program code stored in the memory 1202, the application time consumption evaluation method provided in the embodiments of the present application can be implemented.
[0146] In another possible implementation, the memory 1202 can also be integrated with the processor 1201.
[0147] The bus 1203 can be an industry standard architecture (ISA) bus, a peripheral component interconnect (PCI) bus, an extended industry standard architecture (EISA) bus, or the like. The bus can be divided into an address bus, a data bus, a control bus, and the like. For ease of representation, Figure 12 Only one thick line is used to represent the bus in the figure, but it does not mean that there is only one bus or only one type of bus.
[0148] It should be noted that, Figure 12 The structure shown does not constitute a limitation on the electronic device 120. In addition to Figure 12 The electronic device 120 can include more or fewer components than shown, or combine certain components, or different component arrangements.
[0149] As an example, in combination with Figure 11 The function implemented by the determination unit 1001 in the application time-consuming evaluation device 100 is the same as that of the processor 1201 in Figure 12
[0150] Optionally, as Figure 12 The electronic device 120 provided by the embodiments of the present application can 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 can be an Ethernet, a wireless access network, a wireless local area network (WLAN), or the like. The communication interface 1204 can include a receiving unit for receiving data, and a sending unit for sending data.
[0152] In one design, the communication interface in the electronic device provided by the embodiments of the present application can also be integrated in the processor.
[0153] Through the above description of the embodiments, those skilled in the art can clearly understand that, for the convenience and brevity of description, only the above division of functional units is taken as an example. In actual application, the above functions can be completed by different functional units according to needs, that is, the internal structure of the device is 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 foregoing method embodiments, which will not be described here.
[0154] The embodiment of the present application further provides a computer readable storage medium, and the computer readable storage medium stores instructions. When a computer executes the instructions, the computer executes each step in the method flow shown in the method embodiment.
[0155] The embodiment of the present application provides a computer program product. When computer instructions run on an electronic device, the electronic device executes an application time consumption evaluation method in the method embodiment.
[0156] The computer readable storage medium may, for example, be, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or apparatus, or any combination of the above. More specific examples (a non-exhaustive list) of the computer readable storage medium include an electrical connection having one or more wires, a portable computer diskette, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM), a register, a hard disk, an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any other suitable combination of the above, or any other medium from which the program can be derived. The computer readable storage medium of the application is any tangible medium that can store the programs for use by or in connection with an instruction execution system, apparatus, or device.
[0157] An exemplary storage medium is coupled to the processor so that the processor can read information from, and write information to, the storage medium. Of course, the storage medium can be part of the processor. The processor and the storage medium can be located in an application specific integrated circuit (ASIC).
[0158] In the embodiment of the present application, the computer readable storage medium can be any tangible medium containing or storing a program, which can be used by or in combination with an instruction execution system, apparatus or device.
[0159] Since the electronic device, the computer readable storage medium and the computer program product in the embodiment of the present application can be applied to the above method, the technical effects they can obtain can also be referred to the above method embodiment, which will not be described here in the embodiment of the present application.
[0160] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited to this. Any change or replacement within the technical scope disclosed in the present application should be covered in the protection scope of the present application.
Claims
1. A method for evaluating application time consumption, characterized in that, The method includes: The time consumption corresponding to each of the multiple operating parameter groups of the application to be evaluated is determined; the time consumption corresponding to the target operating parameter group is the time spent by the application to be evaluated running under the target operating parameter group based on preset computing resources; the target operating parameter group is any one of the multiple operating parameter groups. Based on the time consumption corresponding to each set of operating parameters, a time consumption evaluation is performed to determine the time consumption evaluation result of the application to be evaluated. Based on the time consumption corresponding to each set of operating parameters, a time consumption assessment is performed to determine the time consumption assessment result of the application to be evaluated, including: The statistical parameters corresponding to the preset computing power resources are determined based on the time consumption corresponding to each group of operating parameters. 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; The preset computing resources include multiple ones; the statistical parameters corresponding to each preset computing resource are used to characterize the running status data of the application to be evaluated under the preset computing resources and according to different running parameter groups.
2. The method according to claim 1, characterized in that, The statistical parameters include the variance and average of the time consumption; 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: If the variance of the time consumption corresponding to each preset computing resource in the multiple preset computing resources is less than a preset value, the time consumption evaluation result of the application to be evaluated is determined based on the average value of the time consumption corresponding to at least one preset computing resource in the multiple preset computing resources, including the estimated time consumption of the application to be evaluated.
3. The method according to claim 1, characterized in that, The statistical parameters include a probability distribution function; the probability distribution function is used to characterize the probability of time taken to run the application to be evaluated based on the preset computing resources.
4. The method according to claim 3, characterized in that, The statistical parameters also include the variance of the time consumption; 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: If the variance of the time consumption corresponding to at least one of the multiple preset computing resources is greater than or equal to a preset value, and if the probability distribution function corresponding to the at least one preset computing resource has a 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 based on the time consumption interval corresponding to the peak.
5. The method according to claim 3, characterized in that, The statistical parameters also include the variance of the time consumption; 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: If the variance of the time consumption corresponding to at least one of the multiple preset computing resources is greater than or equal to a preset value, and if the probability distribution function corresponding to the at least one preset computing resource is a linear or discrete distribution, the time consumption evaluation result of the application to be evaluated is determined to be that the time consumption of the application to be evaluated cannot be predicted.
6. The method according to claim 1, 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 running parameter group corresponding to the preset computing power resource, and the number of running parameters included in each running parameter group corresponding to the preset computing power resource.
7. The method according to claim 6, characterized in that, The statistical parameters also include the variance and average of the time consumption; 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: If the variance of the time consumption corresponding to at least one of the multiple preset computing resources is greater than or equal to a preset value, and if the fitting polynomial function corresponding to at least two of the multiple preset computing resources is the same, 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 based on the fitting polynomial function corresponding to the at least two preset computing resources and the average value of the time consumption corresponding to the at least one preset computing resource.
8. The method according to claim 6, characterized in that, The statistical parameters also include the variance of the time consumption; 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: If the variance of the time consumption corresponding to at least one of the multiple preset computing resources is greater than or equal to a preset value, and if the fitting polynomial function corresponding to each of the multiple preset computing resources is different, the time consumption evaluation result of the application to be evaluated is determined to be that the time consumption of the application to be evaluated cannot be predicted.
9. The method according to any one of claims 2, 4, and 7, characterized in that, The step of 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 speed, number of processor cores, and memory capacity.
10. An application time evaluation device, characterized in that, The application time consumption evaluation device includes: a determination unit; The determining unit is used to 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 spent by the application to be evaluated running under the target operating parameter group based on preset computing resources; the target operating parameter group is any one of 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 group of operating parameters, and determine the time consumption evaluation result of the application to be evaluated; The determining unit is also used to determine the statistical parameters corresponding to the preset computing power resources based on the time consumption corresponding to each group of operating parameters; The determining unit is further configured 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; The preset computing resources include multiple ones; the statistical parameters corresponding to each preset computing resource are used to characterize the running status data of the application to be evaluated under the preset computing resources and according to different running parameter groups.
11. An electronic device, characterized in that, include: Processor and memory; The memory is used to store one or more programs, the one or more programs including computer execution instructions. When the electronic device is running, the processor executes the computer execution instructions stored in the memory to cause the electronic device to perform the method of any one of claims 1-9.
12. A computer-readable storage medium for storing one or more programs, characterized in that, The one or more programs include instructions that, when executed by a computer, cause the computer to perform the method as described in any one of claims 1-9.
13. A computer program product, characterized in that, The computer program product includes computer instructions that, when executed on an electronic device, cause the electronic device to perform the method as described in any one of claims 1-9.
Citation Information
Patent Citations
Case grouping method and device, computer equipment and storage medium
CN117149613A