The disclosure relates to the technique for evaluating hardware performance.
In a hardware evaluating technology, a hardware test for a computer, i.e., a calculation of speed and performance of the computer, may be achieved by running a performance test program such as a specific calculation task on the computer to measure and calculate speed and effect of accomplishing the task. The calculation process is complex since it includes a large amount of floating point operation or three-dimensional model operation, resulting in consuming a mass of resources. Therefore, the performance evaluation depends on the running condition of the computer, and accuracy of the evaluation is susceptible to interference, and stability of the evaluation is easily affected.
According to the disclosure, it is provided a method for evaluating hardware performance and a server thereof to solve at least one of the above problems.
According to the disclosure, it is provided a method for evaluating hardware performance, including:
After the process of calculating the performance score of the electronic device based on the hardware parameter and the preset weight and before the process of returning the calculation result to the detection terminal, the method further includes:
The calculation result further includes a performance ranking of the electronic devices.
The process of calculating the performance score of the device based on the hardware parameter and the preset weight of the hardware parameter includes:
In the case that the individual piece of hardware has multiple parameters, the process of calculating the performance score of the individual hardware includes:
In the case that the electronic device has multiple pieces of hardware, the process of calculating the performance score of the electronic device includes:
According to the disclosure, it is also provided a server for evaluating hardware performance, including one or more processors, and memory having instructions stored thereon, the instructions, when executed by the one or more processors, cause the processors to perform operations includes:
The processors further performs operations including:
The calculation result further includes a performance ranking of the electronic devices.
The processors perform operations including:
In the case that the individual piece of hardware has multiple parameters, the processors multiply each parameter by a corresponding parameter weight, to obtain a calculation result for each hardware parameter, and add calculation results.
In the case that the electronic device has multiple pieces of hardware, the processors multiply the performance score of each piece of hardware by a corresponding score weight, to obtain a calculation result for each piece of hardware, and add calculation results.
According to the disclosure, it is also provided a non-transitory computer-readable storage medium storing thereon computer executable instructions which, when executed by a computer, enable the computer to perform steps of:
According to the technical solution provided in the disclosure, after the hardware parameter of the device is acquired, the remote server obtains the performance of the device by using weight calculation. Compared with other hardware evaluating technology, a simple calculation is employed in the embodiments of the invention and therefore resource consumption can be reduced; and according to the embodiments of the invention, the performance detection is performed remotely, and thus the process of the performance detection is independent of the running of a computer, thereby increasing stability and reliability of the performance detection.
The achievement of objects, function features and advantages of the invention will be further described in conjunction with the embodiments with reference to the accompanying drawings.
It should be understood that the specific embodiments described herein are merely to explain the invention and are not intended to limit the invention.
Step S11 may include providing a communication connection between a remote server and a detection terminal
Step S12 may include acquiring, by the remote server, a hardware parameter of an electronic device detected by the detection terminal
Step S13 may include calculating, by the remote server, a performance score of the electronic device based on the hardware parameter and a preset weight of the hardware parameter.
An electronic device may include more than one piece of hardware, and each piece of hardware corresponds to a hardware parameter. In addition, based on the importance of each piece of hardware, the hardware parameter of each piece of hardware may correspond to a weight. In the case that the electronic device is a computer, the hardware parameter of the CPU may be larger than that of the graphic card.
Step S14 may include returning a calculation result to the detection terminal, the calculating result includes the performance score of the electronic device.
According to the present embodiment, after the hardware parameter of the electronic device is acquired, the remote server obtains the performance of the electronic device by using weight calculation. Compared with other hardware evaluation technology, a simple calculation is employed in the embodiments of the invention and therefore resource consumption can be reduced; and according to the embodiments of the invention, a performance detection is performed remotely, and thus the process of the performance detection is independent of the running of a computer, thereby increasing stability and reliability of the performance detection.
Referring to
Step S131 may include calculating a performance score of an individual piece of hardware based on the hardware parameter and a parameter weight.
Step S132 may include calculating the performance score of the electronic device based on the performance score of the individual piece of hardware and a score weight corresponding to the performance score of the individual piece of hardware.
The way for calculating the performance score of the electronic device by the remote server may include: firstly calculating the performance score of the each individual piece of hardware in the electronic device based on the hardware parameter and the parameter weight; and then calculating the performance score of the electronic device based on the performance score of the each individual piece of hardware and the corresponding score weight.
In the case that an individual piece of hardware has multiple parameters, a way for calculating the performance score of the individual piece of hardware includes: multiplying the multiple parameters by the corresponding parameter weights respectively and then adding derived results; and in the case that the electronic device has multiple pieces of hardware; a way for calculating the performance score of the electronic device includes: multiplying the performance scores of the multiple pieces of hardware by the corresponding score weights respectively and then adding derived results.
For example, the parameter of a processor (CPU) of the electronic device may include a main frequency (e.g., 2300 MHz), a bus frequency (e.g., 1002.2 MHz) and the number of cores (e.g., dual-core). The performance score of the processor may be expressed as: main frequency*main frequency weight+bus frequency*bus frequency weight+the number of cores*core weight. The electronic device described above generally also includes other hardware such as a mainboard, a memory, a graphic card and a hard disk. The performance scores of the hardware may be calculated sequentially, and then the performance scores of the hardware are multiplied by the corresponding score weights respectively, to obtain the performance score of the electronic device.
Step S15 may include ranking, by the remote server, multiple electronic devices based on calculated performance scores of the multiple electronic devices. Therefore, in the step S14, the calculation result which is returned to the detection terminal includes the performance score of the electronic device and a performance ranking of the electronic devices.
According to the embodiments of the present invention, the remote server may detect multiple electronic devices. Hence, the remote server may acquire the hardware parameters of the multiple electronic devices through the detection terminal, calculate and record the performance score of each of the electronic devices respectively, and establish a performance score database of the electronic device. Therefore, it may be achieved that the electronic devices are ranked based on the performance of the electronic devices. The remote server may further return the calculated performance score of the electronic device and the ranking of the electronic devices to the detection terminal and display the performance score (see
The technical solution provided in this embodiment of the invention has the advantages that, quick calculation speed for evaluating the performance, low resource consumption, high stability and reliability. In addition, cross comparison also can be supported, and the ranking of the electronic devices in the cross comparison can be updated at any time.
According to the present embodiment, after the hardware parameter of the electronic device is acquired, the remote server obtains the performance of the device by using weight calculation. Compared with other hardware evaluating technology, a simple calculation is employed in the embodiments of the invention and therefore resource consumption can be reduced; and according to the embodiments of the invention, a performance detection is performed remotely, and thus the process of the performance detection is independent of the running of a computer, thereby increasing stability and reliability of the performance detection.
Referring to
The method for the remote server calculating the performance score of the electronic device may include: firstly calculating the performance score of the each individual piece of hardware in the electronic device based on the hardware parameter and the parameter weight; and then calculating the performance score of the electronic device based on the performance scores of the each individual piece of hardware and the corresponding score weight.
In the case that an individual piece of hardware has multiple parameters, a way for calculating the performance score of the individual piece of hardware includes: multiplying the multiple parameters by the corresponding parameter weights respectively and then adding derived results; and in the case that the device has multiple pieces of hardware; a way for calculating the performance score of the electronic device includes: multiplying the performance scores of the multiple pieces of hardware by the corresponding score weights respectively and then adding derived results.
For example, the parameter of a processor (CPU) of the electronic device may include a main frequency (e.g., 2300 MHz), a bus frequency (e.g., 1002.2 MHz) and the number of cores (e.g., dual-core). The performance score of the processor may be expressed as: main frequency*main frequency weight+bus frequency*bus frequency weight+the number of cores*core weight. The electronic device described above generally also includes other hardware such as a mainboard, a memory, a graphic card and a hard disk. The performance scores of the hardware may be calculated sequentially, and then the performance scores of the hardware are multiplied by the corresponding score weights respectively, to obtain the performance score of the electronic device.
According to the embodiments of the present invention, the server may detect multiple electronic devices, hence, the server may acquire the hardware parameters of the multiple electronic devices through the detection terminal, calculate and record the performance score of each of the electronic devices respectively, and establish a performance score database of the electronic device, and therefore it may be achieved that the electronic devices are ranked based on the performance of the electronic devices. The server may further return the calculated performance score of the detected electronic device and the ranking of the electronic devices to the detection terminal and display the performance score (see
The technical solution provided in this embodiment of the invention has the advantages that, quick calculation speed for evaluating the performance, low resource consumption, high stability and reliability. In addition, cross comparison also can be supported, and the ranking of the electronic devices in the cross comparison can be updated at any time.
In addition, according to the disclosure, it is also provided a program product storing thereon machine-readable instruction code. When the above-described instruction code is read and executed by a machine, the above-described method for evaluating hardware performance according to the embodiments of the invention may be executed. Accordingly, various storage media such as a disk, an optical disk, a magneto optical disk and a semiconductor memory used to load such program product is also included in the disclosure of the invention.
These above-described machine-readable storage media include but are not limited to various memories and storage units, semiconductor devices, disk units such as optical disks, magnetic disks and magneto-optical disks, and other medium suitable for storing information.
The foregoing are only preferred embodiments of the invention and therefore are not intended to limit the scope of the invention, and any equivalent structures or equivalent alternatives made based on the description and the accompanying drawings of the invention, as well as any applications made based on the disclosure which are directly or indirectly applied to other related technical field are all included in the scope of protection of the present invention.
Number | Date | Country | Kind |
---|---|---|---|
201210186505.2 | Jun 2012 | CN | national |
The present application claims the priority and is a continuation of PCT/CN2013/076882, filed on Jun. 6, 2013 and entitled “METHOD AND SERVER FOR EVALUATING HARDWARE PERFORMANCE”, which claims the priority to Chinese Patent Application No. 201210186505.2, entitled “METHOD AND SERVER FOR EVALUATING HARDWARE PERFORMANCE”, filed on Jun. 7, 2012 with the Chinese State Intellectual Property Office, which are incorporated herein by reference in their entireties.
Number | Date | Country | |
---|---|---|---|
Parent | PCT/CN2013/076882 | Jun 2013 | US |
Child | 14558394 | US |