WO2015043527A1 - 电子设备性能的测试方法及装置 - Google Patents

电子设备性能的测试方法及装置 Download PDF

Info

Publication number
WO2015043527A1
WO2015043527A1 PCT/CN2014/087717 CN2014087717W WO2015043527A1 WO 2015043527 A1 WO2015043527 A1 WO 2015043527A1 CN 2014087717 W CN2014087717 W CN 2014087717W WO 2015043527 A1 WO2015043527 A1 WO 2015043527A1
Authority
WO
WIPO (PCT)
Prior art keywords
test
performance
execution result
result
execution
Prior art date
Application number
PCT/CN2014/087717
Other languages
English (en)
French (fr)
Inventor
蔡旋
Original Assignee
北京安兔兔科技有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 北京安兔兔科技有限公司 filed Critical 北京安兔兔科技有限公司
Publication of WO2015043527A1 publication Critical patent/WO2015043527A1/zh

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3604Software analysis for verifying properties of programs
    • G06F11/3612Software analysis for verifying properties of programs by runtime analysis

Definitions

  • the present invention relates to the field of electronic device testing, and in particular, to a method and device for testing the performance of an electronic device.
  • the performance test software is used to perform the running test to achieve the performance test.
  • the specific test process is: executing the corresponding test program for each item to be tested, thereby determining the test result of the project according to the execution result, and then determining Test results of electronic device performance.
  • test methods test fewer hardware items, only test one or a few common hardware items, and do not consider the interaction of each item in the actual application scenario during the test, resulting in no real The performance of the reactive electronic device will ultimately lead to inaccurate test results.
  • the embodiment of the invention discloses a method and a device for testing the performance of an electronic device, so as to improve the test accuracy of the performance of the electronic device.
  • the technical solutions are as follows:
  • an embodiment of the present invention provides a method for testing performance of an electronic device, including:
  • the items to be tested at least include: virtual machine performance, multi-task performance;
  • testing of the items to be tested separately includes:
  • the item to be tested further includes: a CPU integer computing performance
  • the item to be tested further includes: a CPU floating point number computing performance
  • the item to be tested further includes: a RAM operation performance
  • the item to be tested further includes: a RAM read/write speed
  • the item to be tested further includes: 2D drawing performance of the GPU;
  • the item to be tested further includes: 3D drawing performance of the GPU;
  • the item to be tested further includes: database I/O performance;
  • the item to be tested further includes: a memory performance
  • the memory for which the storage performance is targeted includes: an SD card and/or an EMMC.
  • the item to be tested further includes: display performance;
  • the item to be tested further includes: browser performance;
  • the testing method for the performance of the electronic device provided by the embodiment of the present invention further includes:
  • the items that perform the test are classified, and the test results of the classified items are displayed under the corresponding category identifiers.
  • the project that performs the test is classified, and the test results corresponding to each of the classified items are displayed under the corresponding category identifier, including:
  • the embodiment of the present invention further provides a testing device for performance of an electronic device, including:
  • test instruction obtaining module for obtaining a start test instruction
  • test instruction response module configured to test, respectively, the item to be tested in response to the start test instruction, where the item to be tested includes at least: virtual machine performance, multi-task performance;
  • the test command response module includes:
  • a first execution submodule configured to perform a test of the performance of the virtual machine, to obtain a first execution result
  • a first test result determining submodule configured to determine, according to the first execution result, a first test result corresponding to the performance of the virtual machine
  • a second execution submodule configured to perform the test of the multitask performance after obtaining the first execution result, to obtain a second execution result
  • the second test result determining submodule is configured to determine, according to the second execution result, a second test result corresponding to the multitasking performance.
  • test command response module further includes:
  • a third execution submodule configured to perform a test of the integer performance of the CPU after obtaining the first execution result, to obtain a third execution result
  • the third test result determining submodule is configured to determine, according to the third execution result, a third test result corresponding to the integer performance of the CPU.
  • test command response module further includes:
  • a fourth execution submodule configured to perform a test of a CPU floating point operation performance after obtaining the first execution result, to obtain a fourth execution result
  • a fourth test result determining submodule configured to determine, according to the fourth execution result, a fourth test result corresponding to the CPU floating point performance performance.
  • test command response module further includes:
  • a fifth execution submodule configured to perform a test of the RAM operation performance after obtaining the first execution result, to obtain a fifth execution result
  • the fifth test result determining submodule is configured to determine, according to the fifth execution result, a fifth test result corresponding to the RAM operation performance.
  • test command response module further includes:
  • a sixth execution submodule configured to perform a test of the RAM read/write speed after obtaining the first execution result, Obtaining the sixth execution result
  • the sixth test result determining submodule is configured to determine a sixth test result corresponding to the RAM read/write speed according to the sixth execution result.
  • the fifth execution submodule is configured to perform a test of the RAM operation performance after obtaining the third execution result and the fourth execution result, to obtain a fifth execution result;
  • a fifth test result determining submodule configured to determine, according to the fifth execution result, a fifth test result corresponding to the RAM operation performance
  • a sixth execution submodule configured to perform a test of the RAM read/write speed after obtaining the third execution result and the fourth execution result, to obtain a sixth execution result
  • a sixth test result determining submodule configured to determine, according to the sixth execution result, a sixth test result corresponding to the RAM read/write speed
  • a second execution submodule configured to perform the test of the multitask performance after obtaining the fifth execution result and the sixth execution result, to obtain a second execution result
  • the second test result determining submodule is configured to determine, according to the second execution result, a second test result corresponding to the multitasking performance.
  • test command response module further includes:
  • a seventh execution submodule configured to perform a test of the 2D drawing performance of the GPU after obtaining the second execution result, to obtain a seventh execution result
  • a seventh test result determining submodule configured to determine a seventh test result corresponding to the 2D drawing performance of the GPU according to the seventh execution result.
  • test command response module further includes:
  • An eighth execution submodule configured to perform a test of the 3D drawing performance of the GPU after obtaining the second execution result, to obtain an eighth execution result
  • the eighth test result determining submodule is configured to determine an eighth test result corresponding to the 3D drawing performance of the GPU according to the eighth execution result.
  • test command response module further includes:
  • a ninth execution sub-module configured to perform a test of database I/O performance after obtaining the second execution result, to obtain a ninth execution result
  • a ninth test result determining submodule configured to determine, according to the ninth execution result, a ninth test result corresponding to the database I/O performance.
  • test command response module further includes:
  • a tenth execution submodule configured to perform a memory performance test after obtaining the second execution result, Obtaining the tenth implementation result
  • a tenth test result determining submodule configured to determine, according to the tenth execution result, a tenth test result corresponding to the memory performance.
  • test command response module further includes:
  • An eleventh execution submodule configured to perform a test of display performance after obtaining the first execution result, to obtain an eleventh execution result
  • the eleventh test result determining submodule is configured to determine an eleventh test result corresponding to the performance of the display according to the eleventh execution result.
  • test command response module further includes:
  • a twelfth execution module configured to perform a test of browser performance after obtaining the first execution result, to obtain a twelfth execution result
  • the twelfth test result determining submodule is configured to determine a twelfth test result corresponding to the browser performance according to the twelfth execution result.
  • the device for testing the performance of the electronic device provided by the embodiment of the present invention further includes:
  • the classification display module is configured to classify the items that perform the test, and display the test results of the classified items under the corresponding category identifiers.
  • an embodiment of the present invention further provides a readable storage medium for storing a computer program, where the computer program is used to perform the following steps:
  • the items to be tested at least include: virtual machine performance, multi-task performance;
  • testing of the items to be tested separately includes:
  • the performance of the virtual machine is first tested, which avoids consumption of system resources, system temperature rise, and system allocation of resources due to testing the performance of other projects and then measuring the performance of the virtual machine.
  • the problem of inaccurate testing of the performance of the virtual machine is ultimately caused; and the multitasking performance of the test can reflect the task scheduling capability and resource allocation capability of the electronic device, as well as the overall hardware performance of the electronic device, thereby further simulating the actual use of the user. It can reflect the user experience performance of electronic devices, making the test results more reference and application significance. It can be seen that in this program, through reasonable project testing The test sequence can improve the test accuracy of the performance of the electronic device; moreover, in this solution, multiple items of the electronic device can be tested, so that the performance of the electronic device can be more realistic and comprehensive.
  • FIG. 1 is a first flowchart of a method for testing performance of an electronic device according to an embodiment of the present invention
  • FIG. 2 is a second flowchart of a method for testing performance of an electronic device according to an embodiment of the present invention
  • FIG. 3 is a schematic structural diagram of a device for testing performance of an electronic device according to an embodiment of the present invention.
  • the electronic device may be a mobile device such as a mobile phone, a desktop computer, a notebook computer, a tablet computer, or the like, and may also be an intelligent terminal such as a smart TV. Of course, it may also be another electronic device provided with a CPU and a RAM, and the present invention does not do this. limited.
  • a test method for performance of an electronic device provided by an embodiment of the present invention is first introduced.
  • the testing method for the performance of the electronic device is applicable to the electronic device, wherein, in order to test the performance of the electronic device, the items to be tested include at least: virtual machine performance, multi-task performance, Of course, other items, such as CPU (Central Processing Unit) performance (such as: CPU integer computing performance, CPU floating point computing performance, etc.), RAM (random access memory) performance (such as : RAM computing performance, RAM read and write speed, etc.), GPU (Graphic Processing Unit) performance (such as: GPU 2D graphics performance, GPU 3D graphics performance, etc.), database I / O (input / output, input Output port) at least one of performance, memory performance (eg EMMC (Embedded Multi Media Card) performance, SD card (Secure Digital Memory Card) performance, etc.), display performance, browser performance kind.
  • CPU Central Processing Unit
  • RAM random access memory
  • GPU Graphic Processing Unit
  • database I / O input / output, input Output port
  • memory performance eg EMMC (Embedded Multi Media Card) performance
  • a test method for performance of an electronic device may include:
  • the user can issue a start test command to the electronic device, and after receiving the start test command, the electronic device can respond to the start test command, and then perform the subsequent step S102-step. S105, testing the items to be tested separately.
  • testing the performance of other projects first and then testing the performance of the virtual machine will lead to problems such as consuming system resources, increasing system temperature, and reducing the allocation of virtual machine resources to the system, which ultimately leads to inability to accurately test virtual machine performance. Therefore, in order to improve the accuracy of test results.
  • the virtual machine performance test is first performed, and the first execution result is obtained, and then the first test result corresponding to the virtual machine performance is determined according to the first execution result, thereby completing Test the performance of the virtual machine.
  • the virtual machine is a Dalvik virtual machine, and the performance of the Dalvik virtual machine will be determined in this step, and for other system platforms, the virtual machine may be other virtual
  • the machine such as a JAVA virtual machine, will measure the performance of the JAVA virtual machine in this step, and the present invention is not limited herein.
  • test program used to perform the test of the performance of the virtual machine can be a program written according to an existing algorithm or a self-designed algorithm, which is reasonable; and a test program can be executed to test the virtual machine. Performance, at this time, obtaining a first execution result, and at least two test programs can also be executed to test the virtual machine performance, and at this time, at least two first execution results are obtained.
  • the performance is usually reflected by the running time of the program, the shorter the running time of the program, the faster the running speed of the program, and the higher the performance, therefore, the first execution.
  • the result and subsequent execution results can usually be the execution time of the test program, and are of course not limited thereto.
  • determining the first test result corresponding to the virtual machine performance according to the first execution result may be as follows:
  • the first score corresponding to the first execution result may be determined from the correspondence between the execution time and the score related to the performance of the virtual machine, and the first score is used as the first test result, wherein, in general, the execution time is more Short, the corresponding score is higher; or, after determining the first score, the first evaluation content corresponding to the first score may be further determined according to the correspondence between the preset score related to the virtual machine performance and the evaluation content. And the first evaluation content is used as the first test result, wherein the evaluation content may include: poor, good, general, and excellent, of course, not limited thereto, and the scores of different intervals correspond to different evaluation contents, usually Under the next, the scores corresponding to the difference, good, general and excellent are gradually increased.
  • determining the first test result corresponding to the virtual machine performance according to the first execution result may be as follows :
  • the first score corresponding to each first execution result may be determined from the correspondence between the execution time and the score related to the performance of the virtual machine, and the value obtained by averaging the at least two first scores is used as the first test result; Or, after determining the first score corresponding to each first execution result, determining a preset weight value of the test program corresponding to each first execution result, and multiplying each first score by a corresponding weight value, The sum of the individual products is determined as the first test result.
  • the multi-task performance test may be performed to obtain the second execution result, and according to the second execution result, the second corresponding to the multi-task performance is determined. Test Results.
  • performing the test of the multitask performance may include: randomly starting a plurality of tasks, such as: playing games, playing video/audio, web browsing, etc., and recording a second execution time of the electronic device, thereby obtaining a second execution result.
  • the shorter the second execution time the stronger the performance of the multitasking.
  • determining the second test result corresponding to the multi-task performance according to the second execution result may be as follows:
  • the second score corresponding to the second execution result may be determined from the correspondence between the execution time and the score related to the multitask performance, and the second score is used as the second test result, wherein, in general, the execution time is more Short, the corresponding score is higher; or, after determining the second score, the second evaluation content corresponding to the second score may be further determined according to the correspondence between the preset score related to the multi-task performance and the evaluation content. And the second evaluation content is used as the second test result, wherein the evaluation content may include: poor, good, general, and excellent, of course, not limited to this, and the scores of different intervals correspond to different evaluation contents, usually Under the next, the scores corresponding to the difference, good, general and excellent are gradually increased.
  • the performance of the virtual machine is first tested, which avoids consumption of system resources, system temperature rise, and system allocation of resources due to testing the performance of other projects and then measuring the performance of the virtual machine.
  • the problem of inaccurate testing of the performance of the virtual machine is ultimately caused; and the multitasking performance of the test can reflect the task scheduling capability and resource allocation capability of the electronic device, as well as the overall hardware performance of the electronic device, thereby further simulating the actual use of the user. To make the test results more informative and applicable.
  • the test accuracy of the performance of the electronic device can be improved through a reasonable project test sequence; moreover, the multiple items of the electronic device can be tested in the solution, so that the performance of the electronic device can be more realistic and comprehensive. .
  • test item for testing the performance of the electronic device may further include: CPU integer computing performance, CPU floating point computing performance, GPU 2D drawing performance, GPU 3D drawing. At least one of performance, RAM computing performance, RAM read/write speed, database I/O performance, memory performance, display performance, and browser performance.
  • the RAM performance is determined not only by the RAM hardware itself, but also by other hardware.
  • the CPU also has a certain impact on the RAM performance. Therefore, in order to improve the test accuracy, the RAM operation performance can be referred to the test process to better reflect the performance of the RAM under actual use conditions.
  • the GPU performance test involves a large number of operations, the system temperature will rise significantly.
  • the electronic device may perform some down-clock processing on the CPU in order to save energy, which will result in a CPU integer.
  • the performance of the computing performance and the CPU floating-point performance are not accurate. Therefore, in order to improve the accuracy, the GPU performance test needs to be performed after the CPU integer computing performance and the CPU floating-point computing performance test; and, in order to avoid the GPU performance test first In the RAM performance test, a certain amount of RAM will be consumed, which will affect the test results of the RAM performance. Therefore, the performance test of the GPU needs to be tested after the RAM performance.
  • the CPU to be tested can also include the CPU integer computing performance
  • the CPU integer performance test can be performed to obtain a third execution result, and the CPU integer is determined according to the third execution result.
  • the third test result corresponding to the performance.
  • the third execution result obtained by performing the test of the integer arithmetic performance of the CPU is generally: a third execution time.
  • a test program may be used, in which case a third execution result is obtained; at least two test programs may also be used, and at this time, at least two third execution results are obtained.
  • the test program corresponding to the CPU integer performance performance It can be written according to an existing algorithm or a self-designed algorithm.
  • the existing algorithm may be an integer sorting algorithm, a Huffman encoding algorithm, or an IDEA (International Data Encryption Algorithm).
  • the present invention does not. Limited to this.
  • the manner of determining the third test result corresponding to the integer performance of the CPU is similar to the manner of determining the first test result of the performance of the virtual machine according to the third execution result, and details are not described herein.
  • the CPU to be tested can also include the CPU floating point operation performance
  • the test of the CPU floating point performance can be performed, the fourth execution result is obtained, and the fourth execution result is determined according to the fourth execution result.
  • the fourth test result corresponding to the performance of the CPU floating point number.
  • the fourth execution result obtained by performing the test of the CPU floating point performance performance is generally: a fourth execution time.
  • a test program may be used, in which case a fourth execution result is obtained; at least two test programs may also be used, and at this time, at least two fourth execution results are obtained.
  • the test program of the CPU floating-point arithmetic performance may be a program written according to an existing algorithm involving floating-point arithmetic or a self-designed algorithm.
  • the existing algorithm may be a Fourier transform algorithm or a pi algorithm, and of course, is not limited thereto.
  • the manner of determining the fourth test result corresponding to the CPU floating point performance is similar to the manner of determining the first test result of the virtual machine performance, and details are not described herein.
  • the data to be tested may further include the RAM operation performance
  • the performance of the RAM operation performance may be tested to obtain a fifth execution result, and the RAM operation performance is determined according to the fifth execution result. Corresponding fifth test result.
  • the fifth execution result obtained by performing the test of the RAM operation performance is generally: a fifth execution time.
  • the fifth execution time as the fifth execution result can be recorded by executing a large number of complicated mathematical operations.
  • a test program may be used for performing the test of the performance of the RAM. In this case, a fifth execution result is obtained; at least two test programs may also be used, and at this time, at least two fifth execution results are obtained. It can be understood by those skilled in the art that, in practical applications, the test program of the RAM operation performance may be a program written according to an existing algorithm or a self-designed algorithm.
  • the existing algorithm may be a sorting algorithm or a shifting algorithm, of course, and is not limited thereto.
  • the manner of determining the fifth test result corresponding to the performance of the RAM is similar to the manner of determining the first test result of the performance of the virtual machine, and details are not described herein.
  • the RAM read/write speed may also be included, after the first execution result is obtained, the RAM read/write speed test may be performed to obtain a sixth execution result, and according to the sixth execution result, The sixth test result corresponding to the RAM read/write speed is determined.
  • the sixth execution result obtained by performing the test of the RAM read/write speed is generally: a sixth execution time.
  • the RAM read and write speed is the RAM throughput.
  • a large number of assignment, addition, and multiplication operations on the RAM can be implemented by executing a self-written test program; for example, for performing the RAM read/write speed test, A test procedure is employed, in which case a sixth execution result is obtained; at least two test procedures can also be employed, in which case at least two sixth execution results are obtained.
  • the manner of determining the sixth test result corresponding to the RAM read/write speed is similar to the manner of determining the first test result of the virtual machine performance, and details are not described herein.
  • the 2D drawing performance test of the GPU may be performed after obtaining the third execution result, the fourth execution result, the fifth execution result, and the sixth execution result. Obtaining a seventh execution result, and determining a seventh test result corresponding to the 2D drawing performance of the GPU according to the seventh execution result.
  • the seventh execution result corresponding to the 2D drawing performance of the GPU includes: a seventh execution time.
  • the CPU executes the test program, draws a 2D image and displays the drawn 2D image
  • the seventh execution time as the seventh execution result is: drawing a 2D image and displaying The time required to draw a 2D image.
  • the test of performing 2D drawing performance of the GPU can utilize a test program to obtain a seventh execution time, and can also utilize at least two test programs to obtain at least two seventh execution times, which is reasonable.
  • the seventh score when a seventh execution time is obtained, the seventh score may be determined from the correspondence between the execution time and the score related to the 2D drawing performance of the GPU, and the determined seventh score is used as the seventh test result. And when at least two seventh execution times are obtained, at least two seventh scores may be determined from the correspondence between the execution time and the score related to the 2D drawing performance of the GPU, and the determined seventh score is determined.
  • the value obtained by averaging is used as the seventh test result; of course, the seventh test result corresponding to the 2D drawing performance of the GPU may be determined by setting the weight value, or the content may be further determined by the method for evaluating the content corresponding to the score.
  • the seventh test result corresponding to the 2D drawing performance of the GPU is of course not limited to this.
  • the 2D graphics performance of the GPU can be tested by using a 2D image test program written by an API provided by OpenGL and Canvas, respectively, to obtain a seventh execution result, thereby determining a seventh test result,
  • OpenGL Open Graphics Library
  • Canvas is a new HTML element that can be used to construct graphics, animations, games, and images using scripts (usually JavaScript).
  • the third implementation can be obtained. After the row result, the fourth execution result, the fifth execution result, and the sixth execution result, performing the 3D drawing performance test of the GPU, obtaining the eighth execution result, and determining the 3D drawing performance of the GPU according to the eighth execution result. Corresponding eighth test result.
  • the eighth execution result corresponding to the 3D drawing performance of the GPU includes: an eighth execution time.
  • the CPU generates a 3D image and displays the drawn 3D image by executing the test program
  • the eighth execution time as the eighth execution result is: drawing a 3D image and Shows the time required to draw a 3D image.
  • the test of performing 3D drawing performance of the GPU can utilize a test program to obtain an eighth execution time, and can also utilize at least two test programs to obtain at least two eighth execution times, which is reasonable.
  • the eighth score when an eighth execution time is obtained, the eighth score may be determined from the correspondence between the execution time and the score related to the 3D drawing performance of the GPU, and the determined eighth score is taken as the eighth test. Resulting; and when at least two eighth execution times are obtained, at least two eighth scores may be determined from the correspondence between the execution time and the score related to the 3D drawing performance of the GPU, and the determined eighth The value obtained by averaging the scores is taken as the eighth test result; of course, the eighth test result corresponding to the 3D drawing performance of the GPU may be determined by setting the weight value, or may be further determined by the method of evaluating the content corresponding to the score. The eighth test result corresponding to the 3D drawing performance of the GPU is of course not limited to this.
  • the 3D drawing performance of the GPU can be tested by using a 3D test program written by OpenGL ES 1.1 version and 2.0 version related API (Application Programming Interface), and the eighth execution is obtained by executing different types of test programs.
  • OpenGL ES OpenGL for Embedded Systems
  • OpenGL 3D graphics API designed for embedded devices such as mobile phones, tablets, and game consoles.
  • the data to be tested may further include the database I/O performance, after obtaining the first execution result, performing the test of the database I/O performance, obtaining the ninth execution result, and according to the ninth execution result, Determine the ninth test result corresponding to the database I/O performance.
  • the different operations of the database may be separately tested by different test programs written by themselves, thereby obtaining the ninth execution result corresponding to each operation, and then determining the result according to the ninth execution result.
  • the operations on the database may include: adding, deleting, searching, and replacing data.
  • the manner of determining the ninth test result corresponding to the database I/O performance according to the plurality of ninth execution results is similar to the manner of determining the first test result of the virtual machine performance, and details are not described herein.
  • the memory performance test may be performed after obtaining the first execution result, and the tenth execution result is obtained, and the deposit is determined according to the tenth execution result.
  • the tenth test result corresponding to the reservoir performance.
  • the memory for which the storage performance is directed may include: an SD card and/or an EMMC.
  • the read performance of the EMMC and the write performance of the EMMC can be separately obtained through different test programs written by the user, thereby obtaining the tenth execution result corresponding to each test program, and then determining according to the tenth execution result.
  • the tenth test result corresponding to the EMMC performance, wherein the tenth execution result comprises: a tenth execution time.
  • the manner of determining the tenth test result corresponding to the performance of the EMMC according to the tenth execution result is similar to the manner of determining the first test result of the virtual machine performance, and details are not described herein.
  • the SD performance test may be further performed.
  • the SD card performance also includes a test of read performance and write performance.
  • the performance of the display may be tested after obtaining the first execution result, and the eleventh execution result is obtained, and the performance of the display is determined according to the eleventh execution result. Corresponding eleventh test result.
  • the performance of the display can be reflected by the display standard such as resolution, PPI (Pixels per inch, number of pixels per inch). Therefore, the performance of the display can be tested at least: the resolution of the display and/or the PPI. The higher the resolution, the better the performance of the display, and the higher the PPI, the better the performance of the display.
  • the display standard such as resolution, PPI (Pixels per inch, number of pixels per inch). Therefore, the performance of the display can be tested at least: the resolution of the display and/or the PPI. The higher the resolution, the better the performance of the display, and the higher the PPI, the better the performance of the display.
  • the test program utilized for performing the test of the display performance may be a program written according to an existing algorithm or a self-designed algorithm.
  • a test program for performing the test of the performance of the display, a test program may be used, in which case an eleventh execution result is obtained; at least two test programs may also be used, and at this time, at least two eleventh execution results are obtained.
  • the eleventh test result corresponding to each display standard may be determined, and further determining the performance of the display according to the determined at least two eleventh test results
  • the eleventh test result can also determine the eleventh execution result corresponding to each display standard, further determine the eleventh execution result corresponding to the display performance, and then determine the result according to the eleventh execution result. It is also reasonable that the display performance corresponds to the eleventh test result.
  • the manner of determining the eleventh test result corresponding to the performance of the display is similar to the manner of determining the first test result of the performance of the virtual machine, and details are not described herein.
  • the browser performance test may be performed after obtaining the first execution result, and the twelfth execution result is obtained, and the twelfth execution result is determined according to the twelfth execution result.
  • the twelfth test result corresponding to the browser performance.
  • the performance of the browser can be reflected by the execution time.
  • browser performance testing is divided into two parts: JavaScript testing and HTML5 testing, and According to the twelfth execution result corresponding to the two, the twelfth test result corresponding to the browser performance is determined, for example, the scores corresponding to the twelfth execution result of the two are directly added as the tenth corresponding to the browser performance. The second test result; or, by setting the weight value for both, the twelfth test result corresponding to the browser performance is determined.
  • the JavaScrip test can be tested by Octane and SunSpider two open source test methods, respectively, to obtain their respective execution time, and determine the score corresponding to each execution time, and then the score is summed to get the JavaScript performance. fraction.
  • Octane has designed five test plans based on the original V8 benchmark test set. Each set of plans uses a complete and unoptimized well-known web application library; the scores of these new solutions can be directly interpreted as performance similar to web applications. High and low and smooth.
  • SunSpider is a JavaScript benchmarking platform that measures the performance of a browser's JavaScript engine.
  • HTML5 test project content can include: image rendering, pixel blending, JavaScript binding code efficiency, DOM (Document Object Model node, text layout, image scrolling, page scaling, WebGL 3D, embedded video playback) At least one of the data throughputs. It can be understood that the testing of the content of the HTML5 test project can be based on a program written by an existing algorithm or a self-designed algorithm. Of course, the existing test program can also be utilized. This is reasonable.
  • the existing test programs can include See the Sun Canvas, Canvas Crossfader, Aquarium Canvas, etc.; and for the efficiency of JavaScript binding code, Existing test programs may include Surf Wax Binder; for DOM nodes, existing test programs may include DOM Node Surfer, etc.; for text layout, existing test programs may include Reflo; For WebGL 3D, the existing test program on which it is based can include WebGL Jellyf Ish.
  • the method for determining the twelfth test result corresponding to the performance of the browser is similar to the method for determining the first test result of the performance of the virtual machine according to the twelfth execution result, and details are not described herein.
  • the first performance result of the virtual machine performance may be determined according to the first execution result, and then the CPU integer is executed after obtaining the first execution result.
  • the item to be tested further includes the 2D drawing performance of the GPU
  • performing the test of the 2D drawing performance of the GPU obtaining the seventh execution result, and performing according to the seventh
  • the seventh test result corresponding to the 2D drawing performance of the GPU is determined.
  • the 3D drawing performance test of the GPU may be performed to obtain an eighth execution result, and according to the eighth execution result, Determine the eighth test result corresponding to the 3D drawing performance of the GPU.
  • the item to be tested further includes the database I/O performance
  • the item to be tested further includes the database I/O performance
  • performing the test of the database I/O performance obtaining the ninth execution result, and according to the ninth execution result, Determine the ninth test result corresponding to the database I/O performance.
  • the item to be tested may further include a memory performance, after the obtaining the second execution result, performing the test of the memory performance, obtaining a tenth execution result, and determining, according to the tenth execution result, the memory performance corresponding to the memory performance The tenth test result.
  • test sequences of the various items described above are merely exemplary and should not be construed as limiting the embodiments of the invention.
  • testing method for the performance of the electronic device may further include: displaying each test result determined after the test of the execution item.
  • test results of each project can be separately displayed to the user, and the test result can be displayed in the form of a score, or
  • the form of the level indicates the test result, wherein the form of the level may be poor, good, general, and superior, and the embodiment does not limit this.
  • each test result determined after the test of the execution item may be mathematically processed, and the processing result is used as a performance test result corresponding to the electronic device, and the performance test result is used to reflect the overall performance of the electronic device. And display the performance test results corresponding to the electronic device.
  • test result of the project is a score
  • the test results corresponding to the respective hardware items may be directly added directly, so that the added result is used as the test result corresponding to the electronic device. And displayed to the user; or, you can determine the weight value corresponding to each item, Therefore, the test result of each item is multiplied by the corresponding weight value, and the sum of the products is determined as the test result corresponding to the electronic device, and displayed to the user, of course, not limited thereto.
  • the evaluation content having the highest proportion among all the evaluation contents may be used as the test result of the electronic device, or the test result of the electronic device may be determined according to the evaluation content of a certain hardware item, which It is all reasonable.
  • the test results corresponding to the electronic device may be further displayed in a hierarchical form, for example, the level is 1, the level is A, etc., so that the user can more intuitively understand the performance of the electronic device.
  • each test result determined after the test of the execution item and the test result corresponding to the electronic device can be simultaneously displayed, so that the user can simultaneously understand the overall performance of the electronic device and the performance of each item.
  • the test result corresponding to the performance of the browser may participate in the mathematical operation processing of the performance test result, or may not participate, and the mathematical test of the test result corresponding to the performance of the browser does not participate in the performance test result.
  • the test results corresponding to the browser performance can be displayed separately.
  • test result corresponding to the performance of the display may also participate in the mathematical operation processing of the performance test result described above, or may not participate, and the test result corresponding to the display performance does not participate in the mathematical operation processing of the performance test result.
  • the test results corresponding to the display performance can be displayed separately.
  • the test result of the electronic device and the first electronic device of several other popular models may be displayed to the user to compare the performance difference between the electronic device and the popular model.
  • the method for testing the performance of the electronic device provided by the embodiment of the present invention may further include:
  • the method for testing the performance of the electronic device may further include:
  • the server determines, according to a preset sorting manner, the ranking of the electronic device in the electronic device of the same model and/or the ranking of the electronic device in the electronic device of different models according to the existing manner, and does not do this here. limited.
  • test method for the performance of the electronic device provided by the embodiment of the present invention may further include:
  • the items that perform the test are classified, and the test results of the classified items are displayed under the corresponding category identifiers.
  • determining the virtual machine performance and the multitasking performance as a class and displaying the first test result corresponding to the virtual machine performance and the second test result corresponding to the multitask performance in a category for indicating user experience performance.
  • a category for indicating user experience performance.
  • the CPU integer computing performance and the CPU floating point arithmetic performance are determined as one class, and the third test result corresponding to the CPU integer computing performance and the fourth test result corresponding to the CPU floating point computing performance are displayed in the CPU performance.
  • the category identifier :
  • test of the remaining items can be performed after obtaining the execution result corresponding to the project, instead of performing the test of the remaining items after determining the test result of the project according to the execution result; and determining the test of the hardware item according to the execution result
  • the result process can be performed after the project has been tested, or after the execution results of all projects are determined, which is reasonable.
  • first execution result to the twelfth execution result and the first test result to the twelfth test result are merely for distinguishing different items, and do not have any limiting meaning.
  • the testing method for the performance of the electronic device is applicable to the electronic device.
  • the electronic device may include: a smart phone, a tablet, a notebook, and the like.
  • a test method for performance of an electronic device may include:
  • the user may issue a start test command to the electronic device, and after obtaining the start test command, the electronic device may respond to the test command, and then perform subsequent steps S202-S213 to separately test the test.
  • the project is tested.
  • the items to be tested include: virtual machine performance, multitasking performance, RAM computing performance, RAM read and write speed, CPU integer computing performance, CPU floating point computing performance, GPU 2D graphics performance, GPU 3D graphics performance, memory performance , database I / O performance, browser performance, display performance.
  • test program used to perform the test of the performance of the virtual machine can be a program written according to an existing algorithm or a self-designed algorithm, which is reasonable; and a test program can be executed to test the virtual machine. Performance, at this time, to obtain a first execution time, at least two test programs can also be executed to test the virtual machine performance, and at this time, at least two first execution times are obtained.
  • determining a first score corresponding to the performance of the virtual machine according to the first execution time may be as follows:
  • the first score corresponding to the first execution time may be determined from a correspondence between the preset execution time and the score related to the performance of the virtual machine, wherein, in general, the shorter the execution time, the higher the corresponding score.
  • determining a first score corresponding to the virtual machine performance according to the first execution time may be as follows:
  • the first score corresponding to each first execution time may be determined from the correspondence between the execution time and the score related to the performance of the virtual machine, and the value obtained by averaging the at least two first scores is used as the final first score. Or, after determining the first score corresponding to each first execution time, determining a preset weight value of the test program corresponding to each first execution time, and multiplying each first score by a corresponding weight value, The sum of the individual products is determined as the final first score.
  • test program used to perform the test of the integer arithmetic performance of the CPU may be a program written according to an existing algorithm or a self-designed algorithm, which is reasonable; and, a test program can be executed to test The CPU integer computing performance, at this time, obtain a second execution time, can also be executed At least two test programs are used to test the CPU integer performance, and at this time, at least two second execution times are obtained.
  • the test program corresponding to the CPU integer performance can be written according to an existing algorithm or a self-designed algorithm.
  • the existing algorithm can be an integer sorting algorithm, a Huffman encoding algorithm, or an IDEA (International Data Encryption Algorithm). , International Data Encryption Algorithm), of course, the invention is not limited thereto.
  • the manner of determining the second score corresponding to the performance of the CPU is similar to the manner of determining the performance of the virtual machine in this embodiment, and details are not described herein.
  • test program used for performing the test of the performance of the CPU floating point number may be a program written according to an existing algorithm involving floating point arithmetic or a self-designed algorithm, which is reasonable; Execute a test program to test the performance of the CPU floating point number. At this time, obtain a third execution time, or execute at least two test programs to test the performance of the CPU floating point number. At this time, obtain at least two third executions. time.
  • the existing algorithm may be a Fourier transform algorithm or a pi algorithm, and of course, is not limited thereto.
  • the manner of determining the third score corresponding to the CPU floating point performance is similar to the method for determining the performance of the virtual machine in this embodiment, and details are not described herein.
  • the fourth execution time can be recorded by performing a large number of complicated mathematical operations.
  • a test procedure may be employed, in which case a fourth execution time is obtained; at least two test procedures may also be employed, in which case at least two fourth execution times are obtained.
  • the test program of the RAM operation performance may be a program written according to an existing algorithm or a self-designed algorithm.
  • the existing algorithm may be a sorting algorithm or a shifting algorithm, of course, and is not limited thereto.
  • the manner of determining the fourth score corresponding to the performance of the RAM is similar to the manner of determining the first score of the virtual machine performance, and details are not described herein.
  • the RAM read and write speed is the RAM throughput.
  • a large number of assignment, addition, and multiplication operations on the RAM can be implemented by executing a self-written test program; for example, for performing the RAM read/write speed test, Using a test program, this At the time, a fifth execution time is obtained; at least two test procedures can also be employed, in which case at least two fifth execution times are obtained.
  • the manner of determining the fifth score corresponding to the RAM read/write speed is similar to the manner of determining the first score of the virtual machine performance, and details are not described herein.
  • the performing the multi-task performance test may include: randomly starting a plurality of tasks, such as: playing games, playing video/audio, web browsing, etc., and recording a sixth execution time of the electronic device, and determining, according to the sixth execution time, The sixth score corresponding to the multitasking performance. The shorter the sixth execution time, the stronger the multitasking performance. And, according to the sixth execution time, the manner of determining the sixth score corresponding to the multi-task performance is similar to the manner of determining the first score of the virtual machine performance, and details are not described herein.
  • the CPU will draw a 2D image and display the drawn 2D image by executing the test program, and the seventh execution time as the seventh execution result is: drawing 2D. Image and display the time required to draw the 2D image.
  • the test of performing 2D drawing performance of the GPU can utilize a test program to obtain a seventh execution time, and can also utilize at least two test programs to obtain at least two seventh execution times, which is reasonable.
  • the seventh score when a seventh execution time is obtained, the seventh score may be determined from the correspondence between the execution time and the score related to the 2D drawing performance of the GPU, and the determined seventh score is used as the seventh test result. And when at least two seventh execution times are obtained, at least two seventh scores may be determined from the correspondence between the execution time and the score related to the 2D drawing performance of the GPU, and the determined seventh score is determined The averaged value is obtained as the final seventh score; of course, the seventh score corresponding to the 2D drawing performance of the GPU may also be determined by setting the weight value, which is of course not limited thereto.
  • the 2D graphics performance of the GPU can be tested by using the 2D image test program written by the API provided by OpenGL and Canvas respectively, and the seventh execution time is obtained, thereby determining the seventh score, wherein OpenGL (Open Graphics Library) is a cross.
  • OpenGL Open Graphics Library
  • Canvas is a new HTML element that can be used to construct graphics, animations, games, and images using scripts (usually JavaScript).
  • the test of performing 3D drawing performance of the GPU can utilize a test program to obtain an eighth execution time, and can also utilize at least two test programs to obtain at least two eighth execution times, which It is all reasonable.
  • the eighth score when an eighth execution time is obtained, the eighth score may be determined from the correspondence between the execution time and the score related to the 3D drawing performance of the GPU, and the determined eighth score is taken as the eighth test. Resulting; and when at least two eighth execution times are obtained, at least two eighth scores may be determined from the correspondence between the execution time and the score related to the 3D drawing performance of the GPU, and the determined eighth The value obtained by averaging the score is taken as the final eighth score; of course, the eighth score corresponding to the 3D drawing performance of the GPU may also be determined by setting the weight value, which is of course not limited thereto.
  • the 3D drawing performance of the GPU can be tested by using a 3D test program written by OpenGL ES 1.1 version and 2.0 version related API (Application Programming Interface), and the eighth execution is obtained by executing different types of test programs. Time, and then determine the corresponding eighth score, which OpenGL for Embedded Systems is a subset of the OpenGL 3D graphics API designed for embedded devices such as mobile phones, tablets and game consoles.
  • OpenGL ES 1.1 version and 2.0 version related API Application Programming Interface
  • the different operations of the database may be separately tested by different test programs written by themselves, thereby obtaining the ninth execution time corresponding to each operation, and then determining the ninth execution time according to the ninth execution time.
  • the operations on the database may include: adding, deleting, searching, and replacing data.
  • the manner of determining the ninth score corresponding to the database I/O performance according to the plurality of ninth execution results is similar to the manner of determining the first score of the virtual machine performance, and details are not described herein.
  • the memory for which the storage performance is directed may include: an SD card and/or an EMMC.
  • the read performance of the EMMC and the write performance of the EMMC can be respectively obtained through different test programs written by the user, thereby obtaining the tenth execution time corresponding to each test program, and then determining according to the tenth execution time.
  • the EMMC performance corresponds to the tenth score.
  • the manner of determining the tenth score corresponding to the performance of the EMMC according to the tenth execution time is similar to the manner of determining the first score of the virtual machine performance, and details are not described herein.
  • the SD performance test may be further performed.
  • the SD card performance also includes a test of read performance and write performance.
  • the browser performance test is mainly divided into two parts: JavaScript test and HTML5 test, and according to the twelfth execution time corresponding to the two, the twelfth score corresponding to the browser performance is determined, for example: The scores corresponding to the twelfth execution time of the two are directly added as the twelfth score corresponding to the browser performance; or, by setting the weight values for the two, the twelfth score corresponding to the browser performance is determined. .
  • the JavaScrip test can be tested by Octane and SunSpider two open source test methods, respectively, to obtain their respective execution time, and determine the score corresponding to each execution time, and then the score is summed to get the JavaScript performance. fraction.
  • Octane has designed five test plans based on the original V8 benchmark test set. Each set of plans uses a complete and unoptimized well-known web application library; the scores of these new solutions can be directly interpreted as performance similar to web applications. High and low and smooth.
  • SunSpider is a JavaScript benchmarking platform that measures the performance of a browser's JavaScript engine.
  • HTML5 test project content can include: image rendering, pixel blending, JavaScript binding code efficiency, DOM (Document Object Model node, text layout, image scrolling, page scaling, WebGL 3D, embedded video playback) At least one of the data throughputs. It can be understood that the testing of the content of the HTML5 test project can be based on a program written by an existing algorithm or a self-designed algorithm. Of course, the existing test program can also be utilized. This is reasonable.
  • the existing test programs can include See the Sun Canvas, Canvas Crossfader, Aquarium Canvas, etc.; and for the efficiency of JavaScript binding code, Existing test programs may include Surf Wax Binder; for DOM nodes, existing test programs may include DOM Node Surfer, etc.; for text layout, existing test programs may include Reflo; For WebGL 3D, the existing test program on which it is based can include WebGL Jellyf Ish.
  • the manner of determining the twelfth score corresponding to the performance of the browser is similar to the manner of determining the first score of the performance of the virtual machine according to the twelfth execution time, and details are not described herein.
  • the scores of the respective items may be displayed to the user.
  • the specific display mode can be as follows:
  • the CPU integer operation performance and the CPU floating point operation performance are determined as one class, and the second score corresponding to the CPU integer operation performance and the third score corresponding to the CPU floating point operation performance are displayed in a category for indicating CPU performance. Under the logo;
  • Determining the database I/O performance and the memory performance as a class, and displaying a ninth score corresponding to the database I/O performance and a tenth score corresponding to the memory performance are displayed under the category identifier for indicating storage performance .
  • the browser performance and display performance are determined as one category, and the eleventh score corresponding to the display performance and the twelfth score corresponding to the browser performance are displayed under the category identifier for identifying other items.
  • the test accuracy of the performance of the electronic device can be improved through a reasonable project test sequence; moreover, the multiple items of the electronic device can be tested in the solution, so that the performance of the electronic device can be more realistic and comprehensive. .
  • the embodiment of the present invention further provides a device for testing the performance of an electronic device.
  • the method may include:
  • a test instruction obtaining module 310 configured to obtain a start test instruction
  • the test command response module 320 is configured to test the items to be tested respectively in response to the start test command, where the items to be tested include at least: virtual machine performance and multi-task performance;
  • the test command response module 320 may include:
  • the first execution sub-module 321 is configured to perform testing of the performance of the virtual machine to obtain a first execution result
  • the first test result determining sub-module 322 is configured to determine, according to the first execution result, a first test result corresponding to the performance of the virtual machine;
  • a second execution sub-module 323, configured to perform the test of the multi-task performance after obtaining the first execution result, to obtain a second execution result
  • the second test result determining sub-module 324 is configured to determine, according to the second execution result, a second test result corresponding to the multi-task performance.
  • the performance of the virtual machine is first tested, which avoids consumption of system resources, system temperature rise, and system allocation of resources due to testing the performance of other projects and then measuring the performance of the virtual machine.
  • the problem of inaccurate testing of the performance of the virtual machine is ultimately caused; and the multitasking performance of the test can reflect the task scheduling capability and resource allocation capability of the electronic device, as well as the overall hardware performance of the electronic device, thereby further simulating the actual use of the user. To make the test results more informative and applicable.
  • the test accuracy of the performance of the electronic device can be improved through a reasonable project test sequence; moreover, the multiple items of the electronic device can be tested in the solution, so that the performance of the electronic device can be more realistic and comprehensive. .
  • test command response module 320 may further include:
  • a third execution submodule configured to perform a test of the integer performance of the CPU after obtaining the first execution result, to obtain a third execution result
  • the third test result determining submodule is configured to determine, according to the third execution result, a third test result corresponding to the integer performance of the CPU.
  • test command response module 320 may further include:
  • a fourth execution submodule configured to perform a test of a CPU floating point operation performance after obtaining the first execution result, to obtain a fourth execution result
  • a fourth test result determining submodule configured to determine, according to the fourth execution result, a fourth test result corresponding to the CPU floating point performance performance.
  • test command response module 320 may further include:
  • a fifth execution submodule configured to perform a test of the RAM operation performance after obtaining the first execution result, to obtain a fifth execution result
  • the fifth test result determining submodule is configured to determine, according to the fifth execution result, a fifth test result corresponding to the RAM operation performance.
  • test command response module 320 may further include:
  • a sixth execution submodule configured to perform a test of the RAM read/write speed after obtaining the first execution result, to obtain a sixth execution result
  • the sixth test result determining submodule is configured to determine a sixth test result corresponding to the RAM read/write speed according to the sixth execution result.
  • the fifth execution sub-module configured to perform a test of the RAM operation performance after obtaining the third execution result and the fourth execution result, to obtain a fifth execution result
  • a fifth test result determining submodule configured to determine, according to the fifth execution result, a fifth test result corresponding to the RAM operation performance
  • a sixth execution submodule configured to perform a test of the RAM read/write speed after obtaining the third execution result and the fourth execution result, to obtain a sixth execution result
  • a sixth test result determining submodule configured to determine, according to the sixth execution result, a sixth test result corresponding to the RAM read/write speed
  • a second execution submodule configured to perform the test of the multitask performance after obtaining the fifth execution result and the sixth execution result, to obtain a second execution result
  • the second test result determining submodule is configured to determine, according to the second execution result, a second test result corresponding to the multitasking performance.
  • test command response module 320 may further include:
  • a seventh execution submodule configured to perform a test of the 2D drawing performance of the GPU after obtaining the second execution result, to obtain a seventh execution result
  • a seventh test result determining submodule configured to determine a seventh test result corresponding to the 2D drawing performance of the GPU according to the seventh execution result.
  • test command response module 320 may further include:
  • An eighth execution submodule configured to perform a test of the 3D drawing performance of the GPU after obtaining the second execution result, to obtain an eighth execution result
  • the eighth test result determining submodule is configured to determine an eighth test result corresponding to the 3D drawing performance of the GPU according to the eighth execution result.
  • test command response module 320 may further include:
  • a ninth execution sub-module configured to perform a test of database I/O performance after obtaining the second execution result, to obtain a ninth execution result
  • a ninth test result determining submodule configured to determine, according to the ninth execution result, a ninth test result corresponding to the database I/O performance.
  • test command response module 320 may further include:
  • a tenth execution submodule configured to perform a test of the memory performance after obtaining the second execution result, to obtain a tenth execution result
  • a tenth test result determining submodule configured to determine, according to the tenth execution result, a tenth test result corresponding to the memory performance.
  • test command response module 320 may further include:
  • An eleventh execution submodule configured to perform a test of display performance after obtaining the first execution result, to obtain an eleventh execution result
  • An eleventh test result determining submodule configured to determine the display according to the eleventh execution result Performance corresponds to the eleventh test result.
  • test command response module 320 may further include:
  • a twelfth execution module configured to perform a test of browser performance after obtaining the first execution result, to obtain a twelfth execution result
  • the twelfth test result determining submodule is configured to determine a twelfth test result corresponding to the browser performance according to the twelfth execution result.
  • the device for testing the performance of the electronic device may further include:
  • the classification display module is configured to classify the items that perform the test, and display the test results of the classified items under the corresponding category identifiers.
  • the description is relatively simple, and the relevant parts can be referred to the description of the method embodiment.
  • the embodiment of the present invention further provides a readable storage medium for storing a computer program, which is used at runtime to perform a test method for the performance of the electronic device disclosed in the above embodiments of the present invention.

Landscapes

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

Abstract

一种电子设备性能的测试方法及装置。该电子设备性能的测试方法包括:获得开始测试指令;响应开始测试指令,分别对待测试的项目进行测试,待测试的项目至少包括:虚拟机性能、多任务性能;其中,分别对待测试的项目进行测试包括:执行虚拟机性能的测试,获得第一执行结果,依据第一执行结果,确定虚拟机性能对应的第一测试结果;在获得第一执行结果后,执行多任务性能的测试,获得第二执行结果,并依据第二执行结果,确定多任务性能对应的第二测试结果。通过合理的项目测试顺序,可以提高电子设备性能的测试准确性。

Description

电子设备性能的测试方法及装置
相关申请的交叉引用
本申请要求了2013年9月30日提交的、申请号为201310462144.4、发明名称为“电子设备性能的测试方法及装置”的权益,其全部公开内容通过参考包括于此。
技术领域
本发明涉及电子设备测试领域,特别涉及一种电子设备性能的测试方法及装置。
背景技术
随着科学技术飞速的发展,各种电子设备不断的丰富并方便了大众生活。由于利用电子设备处理信息具有方便快捷、节省资源等优势,使得电子设备成为人们的生活或工作中不可或缺的一部分。
其中,不同机型的电子设备的性能参差不齐,因此,为了用户充分了解电子设备的性能,需要对电子设备的性能进行测试。现有技术中,通过性能测试软件进行跑分测试以实现性能测试,具体测试过程为:为每个待测试的项目执行所对应的测试程序,从而根据执行结果确定出项目的测试结果,进而确定出电子设备性能的测试结果。
但是,现有测试方法所测试的硬件项目较少,仅测试一种或者少数的几种常见的硬件项目,而且在测试过程中并没有考虑到实际应用场景中各个项目的相互影响,导致不能真实的反应电子设备的性能,最终将导致所确定出的测试结果不够准确。
可见,如何提高电子设备性能的测试准确性是一个亟待解决的问题。
发明内容
基于上述问题,本发明实施例公开了一种电子设备性能的测试方法及装置,以提高电子设备性能的测试准确性。技术方案如下:
第一方面,本发明实施例提供了一种电子设备性能的测试方法,包括:
获得开始测试指令;
响应所述开始测试指令,分别对待测试的项目进行测试,所述待测试的项目至少包括:虚拟机性能、多任务性能;
其中,所述分别对待测试的项目进行测试包括:
执行所述虚拟机性能的测试,获得第一执行结果,依据所述第一执行结果,确定所述虚拟机性能对应的第一测试结果;
在获得所述第一执行结果后,执行所述多任务性能的测试,获得第二执行结果,并依据所述第二执行结果,确定所述多任务性能对应的第二测试结果。
可选的,所述待测试的项目还包括:CPU整数运算性能;
在获得所述第一执行结果后,执行所述CPU整数性能的测试,获得第三执行结果,并依据所述第三执行结果,确定所述CPU整数性能对应的第三测试结果。
可选的,所述待测试的项目还包括:CPU浮点数运算性能;
在获得所述第一执行结果后,执行所述CPU浮点数运算性能的测试,获得第四执行结果,并依据所述第四执行结果,确定所述CPU浮点数运算性能对应的第四测试结果。
可选的,所述待测试的项目还包括:RAM运算性能;
在获得所述第一执行结果后,执行所述RAM运算性能的测试,获得第五执行结果,并依据所述第五执行结果,确定所述RAM运算性能对应的第五测试结果。
可选的,所述待测试的项目还包括:RAM读写速度;
在获得所述第一执行结果后,执行所述RAM读写速度的测试,获得第六执行结果,并依据所述第六执行结果,确定所述RAM读写速度对应的第六测试结果。
可选的,在获得所述第三执行结果和所述第四执行结果后,执行所述RAM运算性能的测试,获得第五执行结果,并依据所述第五执行结果,确定所述RAM运算性能对应的第五测试结果;
在获得所述第三执行结果和所述第四执行结果后,执行所述RAM读写速度的测试,获得第六执行结果,并依据所述第六执行结果,确定所述RAM读写速度对应的第六测试结果;
在获得所述第五执行结果和所述第六执行结果后,执行所述多任务性能的测试,获得第二执行结果,并依据所述第二执行结果,确定所述多任务性能对应的第二测试结果。
可选的,所述待测试的项目还包括:GPU的2D绘图性能;
在获得所述第二执行结果后,执行所述GPU的2D绘图性能的测试,获得第七执行结果,并依据所述第七执行结果,确定所述GPU的2D绘图性能对应的第七测试结果。
可选的,所述待测试的项目还包括:GPU的3D绘图性能;
在获得所述第二执行结果后,执行所述GPU的3D绘图性能的测试,获得第八执 行结果,并依据所述第八执行结果,确定所述GPU的3D绘图性能对应的第八测试结果。
可选的,所述待测试的项目还包括:数据库I/O性能;
在获得所述第二执行结果后,执行所述数据库I/O性能的测试,获得第九执行结果,并依据所述第九执行结果,确定所述数据库I/O性能对应的第九测试结果。
可选的,所述待测试的项目还包括:存储器性能;
在获得所述第二执行结果后,执行所述存储器性能的测试,获得第十执行结果,并依据所述第十执行结果,确定所述存储器性能对应的第十测试结果。
可选的,所述储存器性能所针对的存储器包括:SD卡和/或EMMC。
可选的,所述待测试的项目还包括:显示器性能;
在获得所述第一执行结果后,执行所述显示器性能的测试,获得第十一执行结果,并依据所述第十一执行结果,确定所述显示器性能对应的第十一测试结果。
可选的,所述待测试的项目还包括:浏览器性能;
在获得所述第一执行结果后,执行所述浏览器性能的测试,获得第十二执行结果,并依据所述第十二执行结果,确定所述浏览器性能对应的第十二测试结果。
可选的,本发明实施例提供的电子设备性能的测试方法还包括:
将执行测试的项目进行分类处理,并将分类后的各个项目的测试结果显示在对应的类别标识下。
可选的,所述将执行测试的项目进行分类处理,并将分类后的各个项目对应的测试结果显示在对应的类别标识下,包括:
将所述虚拟机性能和所述多任务性能确定为一类,并将所述虚拟机性能对应的第一测试结果和所述多任务性能对应的第二测试结果显示在用于表明用户体验性能的类别标识下;
将所述CPU整数运算性能和CPU浮点数运算性能确定为一类,并将所述CPU整数运算性能对应的第三测试结果和所述CPU浮点数运算性能对应的第四测试结果显示在用于表示CPU性能的类别标识下;
将所述RAM运算性能和所述RAM读写速度确定为一类,并将所述RAM运算性能对应的第五测试结果和所述RAM读写速度对应的第六测试结果显示在用于表明RAM性能的类别标识下;
将所述GPU的2D绘图性能和所述GPU的3D绘图性能确定为一类,并将所述GPU的2D绘图性能对应的第七测试结果和所述GPU的3D绘图性能对应的第八测试结果显示在用于表明GPU性能的类别标识下;
将所述数据库I/O性能和所述存储器性能确定为一类,并将所述数据库I/O性能对应的第九测试结果和所述存储器性能对应的第十测试结果显示在用于表明存储性能的类别标识下。
第二方面,本发明实施例还提供了一种电子设备性能的测试装置,包括:
测试指令获得模块,用于获得开始测试指令;
测试指令响应模块,用于响应所述开始测试指令,分别对待测试的项目进行测试,所述待测试的项目至少包括:虚拟机性能、多任务性能;
所述测试指令响应模块,包括:
第一执行子模块,用于执行所述虚拟机性能的测试,获得第一执行结果;
第一测试结果确定子模块,用于依据所述第一执行结果,确定所述虚拟机性能对应的第一测试结果;
第二执行子模块,用于在获得所述第一执行结果后,执行所述多任务性能的测试,获得第二执行结果;
第二测试结果确定子模块,用于依据所述第二执行结果,确定所述多任务性能对应的第二测试结果。
可选的,所述测试指令响应模块,还包括:
第三执行子模块,用于在获得所述第一执行结果后,执行CPU整数性能的测试,获得第三执行结果;
第三测试结果确定子模块,用于依据所述第三执行结果,确定所述CPU整数性能对应的第三测试结果。
可选的,所述测试指令响应模块,还包括:
第四执行子模块,用于在获得所述第一执行结果后,执行CPU浮点数运算性能的测试,获得第四执行结果;
第四测试结果确定子模块,用于依据所述第四执行结果,确定所述CPU浮点数运算性能对应的第四测试结果。
可选的,所述测试指令响应模块,还包括:
第五执行子模块,用于在获得所述第一执行结果后,执行RAM运算性能的测试,获得第五执行结果;
第五测试结果确定子模块,用于依据所述第五执行结果,确定所述RAM运算性能对应的第五测试结果。
可选的,所述测试指令响应模块,还包括:
第六执行子模块,用于在获得所述第一执行结果后,执行RAM读写速度的测试, 获得第六执行结果;
第六测试结果确定子模块,用于依据所述第六执行结果,确定所述RAM读写速度对应的第六测试结果。
可选的,所述第五执行子模块,用于在获得所述第三执行结果和所述第四执行结果后,执行RAM运算性能的测试,获得第五执行结果;
第五测试结果确定子模块,用于依据所述第五执行结果,确定所述RAM运算性能对应的第五测试结果;
第六执行子模块,用于在获得所述第三执行结果和所述第四执行结果后,执行RAM读写速度的测试,获得第六执行结果;
第六测试结果确定子模块,用于依据所述第六执行结果,确定所述RAM读写速度对应的第六测试结果;
第二执行子模块,用于在获得所述第五执行结果和所述第六执行结果后,执行所述多任务性能的测试,获得第二执行结果;
第二测试结果确定子模块,用于依据所述第二执行结果,确定所述多任务性能对应的第二测试结果。
可选的,所述测试指令响应模块,还包括:
第七执行子模块,用于在获得所述第二执行结果后,执行GPU的2D绘图性能的测试,获得第七执行结果;
第七测试结果确定子模块,用于依据所述第七执行结果,确定GPU的2D绘图性能对应的第七测试结果。
可选的,所述测试指令响应模块,还包括:
第八执行子模块,用于在获得所述第二执行结果后,执行GPU的3D绘图性能的测试,获得第八执行结果;
第八测试结果确定子模块,用于依据所述第八执行结果,确定所述GPU的3D绘图性能对应的第八测试结果。
可选的,所述测试指令响应模块,还包括:
第九执行子模块,用于在获得所述第二执行结果后,执行数据库I/O性能的测试,获得第九执行结果;
第九测试结果确定子模块,用于依据所述第九执行结果,确定所述数据库I/O性能对应的第九测试结果。
可选的,所述测试指令响应模块,还包括:
第十执行子模块,用于在获得所述第二执行结果后,执行存储器性能的测试, 获得第十执行结果;
第十测试结果确定子模块,用于依据所述第十执行结果,确定所述存储器性能对应的第十测试结果。
可选的,所述测试指令响应模块,还包括:
第十一执行子模块,用于在获得所述第一执行结果后,执行显示器性能的测试,获得第十一执行结果;
第十一测试结果确定子模块,用于依据所述第十一执行结果,确定所述显示器性能对应的第十一测试结果。
可选的,所述测试指令响应模块,还包括:
第十二执行模块,用于在获得所述第一执行结果后,执行浏览器性能的测试,获得第十二执行结果;
第十二测试结果确定子模块,用于依据所述第十二执行结果,确定所述浏览器性能对应的第十二测试结果。
可选的,本发明实施例所提供的一种电子设备性能的测试装置还包括:
分类显示模块,用于将执行测试的项目进行分类处理,并将分类后的各个项目的测试结果显示在对应的类别标识下。
第三方面,本发明实施例还提供了一种可读存储介质,用于存储计算机程序,所述计算机程序在运行时用于执行以下步骤:
获得开始测试指令;
响应所述开始测试指令,分别对待测试的项目进行测试,所述待测试的项目至少包括:虚拟机性能、多任务性能;
其中,所述分别对待测试的项目进行测试包括:
执行所述虚拟机性能的测试,获得第一执行结果,依据所述第一执行结果,确定所述虚拟机性能对应的第一测试结果;
在获得所述第一执行结果后,执行所述多任务性能的测试,获得第二执行结果,并依据所述第二执行结果,确定所述多任务性能对应的第二测试结果。
本方案中,在电子设备性能的测试过程中,首先执行虚拟机性能的测试,避免了由于先测试其他项目性能再测虚拟机性能而消耗系统资源、系统温度上升、系统减少对资源的分配,最终导致虚拟机性能的测试不准确的问题;并且,测试多任务性能,能够体现出电子设备的任务调度能力和资源分配能力,以及电子设备的整体的硬件性能,从而进一步模拟了用户实际使用情况,能够体现电子设备的用户体验性能,使得测试结果更具参考性和应用意义。可见,本方案中,通过合理的项目测 试顺序,可以提高电子设备性能的测试准确性;而且,本方案中可对电子设备的多个项目进行测试,从而能够较为真实全面的反应电子设备的性能。
附图说明
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。
图1为本发明实施例所提供的一种电子设备性能的测试方法的第一种流程图;
图2为本发明实施例所提供的一种电子设备性能的测试方法的第二种流程图;
图3为本发明实施例所提供的一种电子设备性能的测试装置的结构示意图。
具体实施方式
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。
为了提高电子设备性能的测试准确性,本发明实施例所提供的一种电子设备性能的测试方法及装置。其中,电子设备可以为手机、台式计算机、笔记本电脑、平板电脑等移动设备,还可以为智能电视等智能终端,当然,还可以是其他设置有CPU和RAM的电子设备,本发明对此不做限定。
下面首先对本发明实施例所提供的一种电子设备性能的测试方法进行介绍。
需要说明的是,本发明实施例所提供的电子设备性能的测试方法适用于电子设备中,其中,为了测试该电子设备的性能,所需测试的项目至少包括:虚拟机性能、多任务性能,当然,还可以包括其他的项目,例如:CPU(Central Processing Unit,中央处理器)性能(如:CPU整数运算性能、CPU浮点数运算性能等)、RAM(random access memory,随机存储器)性能(如:RAM运算性能、RAM读写速度等)、GPU(Graphic Processing Unit,图形处理器)性能(如:GPU的2D绘图性能、GPU的3D绘图性能等)、数据库I/O(input/output,输入输出端口)性能、存储器性能(如:EMMC(Embedded Multi Media Card,内嵌式存储器)性能、SD卡(Secure Digital Memory Card,安全数码卡)性能等)、显示器性能、浏览器性能中的至少一种。
如图1所示,一种电子设备性能的测试方法,可以包括:
S101,获得开始测试指令;
通常情况下,当需要测试电子设备的性能时,用户可以对电子设备发出开始测试指令,而该电子设备在接收到开始测试指令后,可以响应该开始测试指令,进而执行后续的步骤S102-步骤S105,以分别对待测试的项目进行测试。
S102,执行虚拟机性能的测试,获得第一执行结果;
S103,依据该第一执行结果,确定该虚拟机性能对应的第一测试结果;
由于先测试其他项目性能再测试虚拟机性能会带来消耗系统资源、系统温度上升、系统减少对虚拟机资源的分配等问题,最终导致不能准确测试虚拟机性能,因此,为了提高测试结果的准确性,在响应该开始测试指令的测试过程中,首先执行该虚拟机性能的测试,获得第一执行结果,进而依据该第一执行结果,确定该虚拟机性能对应的第一测试结果,从而完成对该虚拟机性能的测试。举例而言,可以理解的是,对于Andriod系统平台而言,该虚拟机为Dalvik虚拟机,本步骤中将测定Dalvik虚拟机性能,而对于其他系统平台而言,该虚拟机可以为其他的虚拟机,例如JAVA虚拟机,那么本步骤中将测定JAVA虚拟机性能,本发明在此不做限定。
需要说明的是,执行虚拟机性能的测试所利用的测试程序可以为依据现有的算法或自行设计的算法所编写的程序,这都是合理的;并且,可以执行一个测试程序来测试虚拟机性能,此时,获得一个第一执行结果,也可以执行至少两个测试程序来测试虚拟机性能,此时,获得至少两个第一执行结果。
并且,本领域技术人员可以理解的是,由于性能的高低通常通过程序运行的时间来体现,程序运行的时间越短,说明程序运行速度越快,进而说明性能越高,因此,该第一执行结果以及后续的各个执行结果通常可以为测试程序的执行时间,当然并不局限于此。
举例而言,基于第一执行结果为第一执行时间的情况,当获得一个第一执行结果时,依据该第一执行结果,确定虚拟机性能对应的第一测试结果,可以通过如下方式:
可以从与虚拟机性能相关的执行时间与分数的对应关系中,确定出第一执行结果对应的第一分数,并将该第一分数作为第一测试结果,其中,通常情况下,执行时间越短,所对应的分数越高;或者,在确定出第一分数后,可以依据与虚拟机性能相关的预设的分数与评价内容的对应关系,进一步确定该第一分数对应的第一评价内容,并将该第一评价内容作为第一测试结果,其中,该评价内容可以包括:差、良好、一般、优,当然并不局限于此,且不同区间的分数对应不同的评价内容,通常情况下,差、良好、一般和优所对应的分数逐渐升高。
举例而言,基于第一执行结果为第一执行时间的情况,当获得至少两个第一执行结果时,依据该第一执行结果,确定虚拟机性能对应的第一测试结果,可以通过如下方式:
可以从与虚拟机性能相关的执行时间与分数的对应关系中,确定出每一第一执行结果对应的第一分数,并将至少两个第一分数求平均所得的值作为第一测试结果;或者,在确定出每一第一执行结果对应的第一分数后,确定每一第一执行结果所对应测试程序的预设的权重值,并将各个第一分数与相应权重值相乘,将各个乘积之和确定为第一测试结果。
需要说明的是,上述确定虚拟机性能的第一测试结果的方式仅仅作为示例,并不应该构成对本发明实施例的限定。
S104,在获得该第一执行结果后,执行该多任务性能的测试,获得第二执行结果;
S105,依据该第二执行结果,确定该多任务性能对应的第二测试结果。
可以理解的是,在实际应用中,用户使用电子设备时,通常会打开多个应用,而该电子设备则会同时执行多个任务或程序,这考验了电子设备的整体硬件性能,同时也考验系统的任务调度能力和资源分配能力,因此,为了提高对电子设备性能的测试准确性以及全面性,对电子设备的多任务性能的测试也是不可缺少。
基于上述目的,在执行虚拟机性能的测试并获得第一执行结果后,可以执行该多任务性能的测试,获得第二执行结果,依据该第二执行结果,确定该多任务性能对应的第二测试结果。
具体的,执行该多任务性能的测试可以包括:随机启动多个任务,例如:游戏、播放视频/音频、网页浏览等,并记录电子设备的第二执行时间,从而获得第二执行结果。其中,第二执行时间越短,表明该多任务性能越强。
举例而言,基于第二执行结果为第二执行时间的情况,依据该第二执行结果,确定多任务性能对应的第二测试结果,可以通过如下方式:
可以从与多任务性能相关的执行时间与分数的对应关系中,确定出第二执行结果对应的第二分数,并将该第二分数作为第二测试结果,其中,通常情况下,执行时间越短,所对应的分数越高;或者,在确定出第二分数后,可以依据与多任务性能相关的预设的分数与评价内容的对应关系,进一步确定该第二分数对应的第二评价内容,并将该第二评价内容作为第二测试结果,其中,该评价内容可以包括:差、良好、一般、优,当然并不局限于此,且不同区间的分数对应不同的评价内容,通常情况下,差、良好、一般和优所对应的分数逐渐升高。
需要说明的是,上述确定多任务性能对应的第二测试结果的方式仅仅作为示例,并不应该构成对本发明实施例的限定。
本方案中,在电子设备性能的测试过程中,首先执行虚拟机性能的测试,避免了由于先测试其他项目性能再测虚拟机性能而消耗系统资源、系统温度上升、系统减少对资源的分配,最终导致虚拟机性能的测试不准确的问题;并且,测试多任务性能,能够体现出电子设备的任务调度能力和资源分配能力,以及电子设备的整体的硬件性能,从而进一步模拟了用户实际使用情况,使得测试结果更具参考性和应用意义。可见,本方案中,通过合理的项目测试顺序,可以提高电子设备性能的测试准确性;而且,本方案中可对电子设备的多个项目进行测试,从而能够较为真实全面的反应电子设备的性能。
需要说明的是,本发明实施例所提供的电子设备性能的测试方法所针对的待测试的项目还可以包括:CPU整数运算性能、CPU浮点数运算性能、GPU的2D绘图性能、GPU的3D绘图性能、RAM运算性能、RAM读写速度、数据库I/O性能、存储器性能、显示器性能、浏览器性能中的至少一种。
通常情况下,由于在实际应用中,很少有程序只执行数据读写,而不执行数据运算,两者通常同时存在,因此,在实际应用中决定RAM性能不仅在于RAM硬件本身,其他硬件尤其是CPU对RAM性能也有一定影响,因此,为了提高测试准确性,可以把RAM运算性能引用到测试过程中从而更好的反映实际使用情况下RAM的性能。
更进一步的,由于GPU性能的测试涉及到大量运算,会使系统温度显著升高,当系统温度升高后电子设备可能会为了节能会对CPU做一些降频处理,这样就会导致对CPU整数运算性能和CPU浮点数运算性能的测试不准确,因此,为了提高准确性,GPU性能的测试需要在CPU整数运算性能和CPU浮点数运算性能的测试之后进行;并且,为了避免GPU性能的测试先于RAM性能测试,将会消耗一定的RAM,从而影响RAM性能的测试结果,因此,GPU的性能的测试需要在RAM性能的测试之后。
对于待测试的项目还可以包括CPU整数运算性能时,可以在获得该第一执行结果后,执行该CPU整数性能的测试,获得第三执行结果,并依据该第三执行结果,确定该CPU整数性能对应的第三测试结果。
在本发明实施例中,执行该CPU整数运算性能的测试所获得的第三执行结果通常为:第三执行时间。并且,对于执行该CPU整数运算性能的测试,可以采用一种测试程序,此时,获得一个第三执行结果;也可以采用至少两种测试程序,此时,获得至少两个第三执行结果。可以理解的是,该CPU整数运算性能对应的测试程序 可以依据现有的算法或自行设计的算法编写,例如:现有的算法可以为整数排序算法、霍夫曼编码算法或IDEA(International Data Encryption Algorithm,国际数据加密算法),当然,本发明并不局限于此。并且,依据该第三执行结果,确定该CPU整数性能对应的第三测试结果的方式与上述虚拟机性能的第一测试结果的确定方式相似,在此不作赘述。
对于待测试的项目还可以包括CPU浮点数运算性能时,可以在获得该第一执行结果后,执行该CPU浮点数运算性能的测试,获得第四执行结果,并依据该第四执行结果,确定该CPU浮点数运算性能对应的第四测试结果。
在本发明实施例中,执行该CPU浮点数运算性能的测试所获得的第四执行结果通常为:第四执行时间。并且,对于执行该CPU浮点数运算性能的测试,可以采用一种测试程序,此时,获得一个第四执行结果;也可以采用至少两种测试程序,此时,获得至少两个第四执行结果。本领域技术人员可以理解的是,在实际应用中,该CPU浮点数运算性能的测试程序可以为依据现有的涉及浮点数运算的算法或自行设计的算法所编写的程序。例如:现有的算法可以为傅里叶变换算法或圆周率算法,当然,并不局限于此。并且,依据该第四执行结果,确定该CPU浮点数运算性能对应的第四测试结果的方式与上述虚拟机性能的第一测试结果的确定方式相似,在此不作赘述。
对于待测试的项目还可以包括RAM运算性能时,可以在获得该第一执行结果后,执行该RAM运算性能的测试,获得第五执行结果,并依据该第五执行结果,确定该RAM运算性能对应的第五测试结果。
在本发明实施例中,执行该RAM运算性能的测试所获得的第五执行结果通常为:第五执行时间。并且,对于执行RAM运算性能的测试,可以通过执行大量复杂的数学运算的方式,从而记录作为第五执行结果的第五执行时间。并且,对于执行该RAM运算性能的测试,可以采用一种测试程序,此时,获得一个第五执行结果;也可以采用至少两种测试程序,此时,获得至少两个第五执行结果。本领域技术人员可以理解的是,在实际应用中,该RAM运算性能的测试程序可以为依据现有的算法或自行设计的算法所编写的程序。例如:现有的算法可以为排序算法或移位算法,当然,并不局限于此。其中,依据该第五执行结果,确定该RAM运算性能对应的第五测试结果的方式与上述虚拟机性能的第一测试结果的确定方式相似,在此不作赘述。
对于待测试的项目还可以包括RAM读写速度时,可以在获得该第一执行结果后,执行该RAM读写速度的测试,获得第六执行结果,并依据该第六执行结果,确 定该RAM读写速度对应的第六测试结果。
在本发明实施例中,执行该RAM读写速度的测试所获得的第六执行结果通常为:第六执行时间。并且,该RAM读写速度即为RAM吞吐量。具体的,对于RAM读写速度的测试,可以通过执行自行编写的测试程序来实现对RAM进行的大量赋值、加法、乘法运算的操作;举例而言,对于执行该RAM读写速度的测试,可以采用一种测试程序,此时,获得一个第六执行结果;也可以采用至少两种测试程序,此时,获得至少两个第六执行结果。并且,依据该第六执行结果,确定该RAM读写速度对应的第六测试结果的方式与上述虚拟机性能的第一测试结果的确定方式相似,在此不作赘述。
对于待测试的项目还可以包括GPU的2D绘图性能时,可以在获得该第三执行结果、第四执行结果、第五执行结果及第六执行结果后,执行该GPU的2D绘图性能的测试,获得第七执行结果,并依据该第七执行结果,确定该GPU的2D绘图性能对应的第七测试结果。
需要说明的是,该GPU的2D绘图性能对应的第七执行结果包括:第七执行时间。其中,在对GPU的2D绘图性能的测试过程中,CPU通过执行测试程序,会绘制2D图像并显示所绘制的2D图像,而作为第七执行结果的第七执行时间为:绘制2D图像并显示所绘制2D图像所需的时间。并且,执行GPU的2D绘图性能的测试可以利用一种测试程序,从而获得一个第七执行时间,也可以利用至少两种测试程序,从而获得至少两个第七执行时间,这都是合理的。
其中,当获得一个第七执行时间时,可以从与GPU的2D绘图性能相关的执行时间与分数的对应关系中,确定出第七分数,并将所确定出的第七分数作为第七测试结果;而当获得至少两个第七执行时间时,可以从与GPU的2D绘图性能相关的执行时间与分数的对应关系中,确定出至少两个第七分数,并将所确定出的第七分数求平均所得的值作为第七测试结果;当然,也可以通过设置权重值的方式确定该GPU的2D绘图性能对应的第七测试结果,或者,也可以进一步通过为分数对应评价内容的方式确定该GPU的2D绘图性能对应的第七测试结果,当然并不局限于此。
其中,可以通过分别使用OpenGL和Canvas提供的API编写的2D图像测试程序测试GPU的2D绘图性能,获得第七执行结果,从而确定出第七测试结果,其中,OpenGL(Open Graphics Library)是一种跨编程语言、跨平台的应用程序接口的规格,用于生成二维、三维图像;Canvas是一个新的HTML元素,可使用脚本(通常是JavaScript)来构造图形、动画、游戏和图片。
对于当该待测试的项目还可以包括GPU的3D绘图性能时,可以在获得该第三执 行结果、第四执行结果、第五执行结果及第六执行结果后,执行该GPU的3D绘图性能的测试,获得第八执行结果,并依据该第八执行结果,确定该GPU的3D绘图性能对应的第八测试结果。
需要说明的是,该GPU的3D绘图性能对应的第八执行结果包括:第八执行时间。其中,在对GPU的3D绘图性能的测试过程中,CPU通过执行测试程序,会绘制3D图像并显示所绘制的3D图像,而作为第八执行结果的该第八执行时间为:绘制3D图像并显示所绘制3D图像所需的时间。并且,执行GPU的3D绘图性能的测试可以利用一种测试程序,从而获得一个第八执行时间,也可以利用至少两种测试程序,从而获得至少两个第八执行时间,这都是合理的。
其中,当获得一个第八执行时间时,可以从与GPU的3D绘图性能相关的执行时间与分数的对应关系中,确定出第八分数,并将所确定出的该第八分数作为第八测试结果;而当获得至少两个第八执行时间时,可以从与GPU的3D绘图性能相关的执行时间与分数的对应关系中,确定出至少两个第八分数,并将所确定出的第八分数求平均所得的值作为第八测试结果;当然,也可以通过设置权重值的方式确定该GPU的3D绘图性能对应的第八测试结果,或者,也可以进一步通过为分数对应评价内容的方式确定该GPU的3D绘图性能对应的第八测试结果,当然并不局限于此。
其中,该GPU的3D绘图性能可以通过使用OpenGL ES 1.1版本和2.0版本相关API(Application Programming Interface,应用程序编程接口)编写的3D测试程序实现测试,通过执行不同类型的测试程序来获取第八执行结果,进而确定出相第八测试结果,其中,OpenGL ES(OpenGL for Embedded Systems)是OpenGL三维图形API的子集,针对手机、平板电脑和游戏主机等嵌入式设备而设计。
对于该待测试的项目还可以包括数据库I/O性能时,可以在获得该第一执行结果后,执行该数据库I/O性能的测试,获得第九执行结果,并依据该第九执行结果,确定该数据库I/O性能对应的第九测试结果。
其中,执行数据库I/O性能的测试测试时,可以通过自行编写的不同测试程序分别测试数据库的不同操作,从而获得每一操作对应的第九执行结果,进而根据该第九执行结果确定出该数据库I/O性能对应的第九测试结果,其中,第九执行结果包括:第九执行时间。其中,对数据库的操作可以包括:数据的添加,删除,查找,替换等。其中,依据多个第九执行结果确定该数据库I/O性能对应的第九测试结果的方式与上述虚拟机性能的第一测试结果的确定方式相似,在此不作赘述。
对于该待测试的项目还可以包括存储器性能时,可以在获得该第一执行结果后,执行该存储器性能的测试,获得第十执行结果,并依据该第十执行结果,确定该存 储器性能对应的第十测试结果。其中,该储存器性能所针对的存储器可以包括:SD卡和/或EMMC。
其中,执行EMMC性能测试时,可以通过自行编写的不同的测试程序分别获得EMMC的读性能和EMMC的写性能,从而获得每一测试程序对应的第十执行结果,进而依据第十执行结果,确定该EMMC性能对应的第十测试结果,其中,第十执行结果包括:第十执行时间。其中,依据第十执行结果确定该EMMC性能对应的第十测试结果的方式与上述虚拟机性能的第一测试结果的确定方式相似,在此不作赘述。
需要说明的是,对于存在SD卡的电子设备而言,也可以进一步执行SD性能的测试,其中,与EMMC类似,SD卡性能也包括读性能和写性能的测试。
对于该待测试的项目还可以包括显示器性能时,可以在获得该第一执行结果后,执行该显示器性能的测试,获得第十一执行结果,并依据该第十一执行结果,确定该显示器性能对应的第十一测试结果。
其中,需要说明的是,显示器性能的高低可以通过分辨率、PPI(Pixels per inch,每英寸所拥有的像素数目)等显示标准来体现。因此,对该显示器性能的测试至少可以为:对显示器的分辨率和/或PPI的测试,其中,分辨率越高表明显示器性能越好,而PPI越高也表明显示器性能越好。
可以理解的是,基于每一种显示标准而言,执行显示器性能的测试所利用的测试程序可以为依据现有的算法或自行设计的算法所编写的程序。其中,对于执行该显示器性能的测试,可以采用一种测试程序,此时,获得一个第十一执行结果;也可以采用至少两种测试程序,此时,获得至少两个第十一执行结果。其中,对于基于至少两个显示标准来测试显示器性能而言,可以确定出每一显示标准对应的第十一测试结果,进一步依据所确定出的至少两个第十一测试结果,确定显示器性能对应的第十一测试结果,当然,也可以确定出每一显示标准对应的第十一执行结果,进一步确定出显示器性能对应的第十一执行结果,然后依据该第十一执行结果,确定出该显示器性能对应的第十一测试结果,这也是合理的。并且,依据该第十一执行结果,确定该显示器性能对应的第十一测试结果的方式与上述虚拟机性能的第一测试结果的确定方式相似,在此不作赘述。
对于该待测试的项目还可以包括浏览器性能时,可以在获得该第一执行结果后,执行该浏览器性能的测试,获得第十二执行结果,并依据该第十二执行结果,确定该浏览器性能对应的第十二测试结果。
其中,需要说明的是,浏览器性能的高低可以通过执行时间来体现。并且,在实际应用中,浏览器性能测试主要分为两个部分:JavaScript测试和HTML5测试,并 依据两者对应的第十二执行结果,确定出浏览器性能对应的第十二测试结果,例如:将两者的第十二执行结果所对应的分数直接相加作为浏览器性能对应的第十二测试结果;或者,通过为两者设置权重值的方式,确定出浏览器性能对应的第十二测试结果。
其中,在实际应用中,JavaScrip测试可以通过Octane和SunSpider两个开源测试方法进行测试,分别得到各自对应的执行时间,并确定每一执行时间所对应的分数,然后分数求和即得到JavaScript性能的分数。其中,Octane在原有V8基准测试集的基础上新设计了五项测试方案,每组方案均选用完整、未经优化的知名web应用库;这些新方案的得分可以直接解释为类似web应用的性能高低与流畅程度。而SunSpider是一个JavaScript基准测试平台,它可以衡量一款浏览器的JavaScript引擎性能。
其中,HTML5测试的项目内容可以包括:图像渲染、像素混合、JavaScript绑定代码的效率、DOM(文件对象模型(Document Object Model)节点、文本排版、图像滚动、页面缩放、WebGL 3D、嵌入视频播放、数据吞吐量中的至少一种。可以理解的是,对于HTML5测试的项目内容的测试可以依据由现有的算法或自行设计的算法所编写的程序,当然,也可以利用现有的测试程序,这都是合理的。例如:对于图像渲染而言,所依据的现有测试程序可以包括See the Sun Canvas、Canvas Crossfader、Aquarium Canvas等;而对于JavaScript绑定代码的效率而言,所依据的现有测试程序可以包括Surf Wax Binder;而对于DOM节点而言,所依据的现有测试程序可以包括DOM Node Surfer等;而对于文本排版而言,所依据的现有测试程序可以包括Reflo;而对于WebGL 3D而言,所依据的现有测试程序可以包括WebGL Jellyfish。
并且,依据该第十二执行结果,确定该浏览器性能对应的第十二测试结果的方式与上述虚拟机性能的第一测试结果的确定方式相似,在此不作赘述。
更进一步的,在保证首先测试虚拟机性能,且GPU的2D绘图性能和GPU的3D绘图性能的测试在CPU整数运算性能、CPU浮点数运算性能、RAM运算性能及RAM读写速度之后的情况下,可以首先执行虚拟机性能的测试,获得第一执行结果,依据该第一执行结果,确定该虚拟机性能对应的第一测试结果;然后,在获得该第一执行结果后,执行该CPU整数性能的测试,获得第三执行结果,并依据该第三执行结果,确定该CPU整数性能对应的第三测试结果;在获得该第一执行结果后,执行该CPU浮点数运算性能的测试,获得第四执行结果,并依据该第四执行结果,确定该CPU浮点数运算性能对应的第四测试结果;进一步,在获得该第三执行结果和该第 四执行结果后,执行该RAM运算性能的测试,获得第五执行结果,并依据该第五执行结果,确定该RAM运算性能对应的第五测试结果;在获得该第三执行结果和该第四执行结果后,执行该RAM读写速度的测试,获得第六执行结果,并依据该第六执行结果,确定该RAM读写速度对应的第六测试结果;在获得该第五执行结果和该第六执行结果后,执行该多任务性能的测试,获得第二执行结果,并依据所述第二执行结果,确定该多任务性能对应的第二测试结果。
相应的,当该待测试的项目还包括GPU的2D绘图性能时,可以在获得该第二执行结果后,执行该GPU的2D绘图性能的测试,获得第七执行结果,并依据该第七执行结果,确定该GPU的2D绘图性能对应的第七测试结果。
而当该待测试的项目还包括GPU的3D绘图性能时,可以在获得该第二执行结果后,执行该GPU的3D绘图性能的测试,获得第八执行结果,并依据该第八执行结果,确定该GPU的3D绘图性能对应的第八测试结果。
当该待测试的项目还包括时数据库I/O性能时,可以在获得该第二执行结果后,执行该数据库I/O性能的测试,获得第九执行结果,并依据该第九执行结果,确定该数据库I/O性能对应的第九测试结果。
当该待测试的项目还可以包括存储器性能时,可以在获得该第二执行结果后,执行该存储器性能的测试,获得第十执行结果,并依据该第十执行结果,确定该存储器性能对应的第十测试结果。
可以理解的是,上述的各个项目的测试顺序仅仅作为一种示例,并不应该构成对本发明实施例的限定。
更进一步的,本发明实施例所提供的电子设备性能的测试方法还可以包括:显示执行项目的测试后所确定的各个测试结果。
本领域技术人员可以理解,为了使用户直观地了解项目的性能,在对测试的项目进行测试后,可以将各个项目的测试结果分别显示给用户,可以以分数的形式显示测试结果,也可以以等级的形式显示测试结果,其中等级的形式可以是差、良好、一般、优等,本实施例对此不作限制。
作为一种可选方式,也可以将执行项目的测试后所确定的各个测试结果进行数学运算处理,将处理结果作为电子设备对应的性能测试结果,该性能测试结果用于反映电子设备的总体性能,并显示该电子设备对应的性能测试结果。
举例而言,对于项目的测试结果为分数的情况,在确定电子设备对应的测试结果时,可以直接将各个硬件项目对应的测试结果直接相加,从而将相加结果作为电子设备对应的测试结果,并显示给用户;或者,可以确定每一项目对应的权重值, 从而将每一项目的测试结果与相应权重值相乘,并将各乘积之和确定为该电子设备对应的测试结果,并显示给用户,当然并不局限于此。而对于项目的测试结果为评价内容的情况,可以将所有评价内容中所占比例最高的评价内容作为电子设备的测试结果,或者,根据某一硬件项目的评价内容确定电子设备的测试结果,这都是合理的。此外,也可以进一步将电子设备对应的测试结果以等级的形式展现出来,例如,等级为1、等级为A等,使用户更加直观的了解电子设备的性能。
本领域技术人员可以理解,可以同时显示执行项目的测试后所确定的各个测试结果和电子设备对应的测试结果,以使用户同时了解电子设备的整体性能和各个项目的性能。
需要说明的是,本发明实施例中,浏览器性能对应的测试结果可以参与上述性能测试结果的数学运算处理,也可以不参与,在浏览器性能对应的测试结果不参与性能测试结果的数学运算处理的情况下,浏览器性能对应的测试结果可以单独显示。
类似的,本发明实施例中,显示器性能对应的测试结果也可以参与上述性能测试结果的数学运算处理,也可以不参与,在显示器性能对应的测试结果不参与性能测试结果的数学运算处理的情况下,显示器性能对应的测试结果可以单独显示。
更进一步的,为了提高用户体验,可以向用户展示出该电子设备与其他几种热门机型的第一电子设备的测试结果,以比较该电子设备与热门机型的性能差别。为了实现上述功能,本发明实施例所提供的电子设备性能的测试方法还可以包括:
接收用于指示将电子设备与第一电子设备进行性能对比的对比指令;
显示该电子设备的各个项目所对应的测试结果以及预先存储的或从服务器获取的该第一电子设备的相应项目的测试结果;或者,显示该电子设备对应的测试结果以及预先存储的或从服务器获取的该第一电子设备的测试结果。
更进一步的,为了提高用户体验,本发明实施例所提供的电子设备性能的测试方法,还可以包括:
获取电子设备的机型;
将该电子设备对应的测试结果、机型发送至服务器,以使得该服务器按照预设的排序方式,确定该电子设备在相同机型的电子设备中的排名和/或该电子设备在不同机型的电子设备中的排名,并将所确定出的排名反馈给该电子设备;
接收该服务器所反馈的排名并显示。
其中,服务器按照预设的排序方式,确定该电子设备在相同机型的电子设备中的排名和/或该电子设备在不同机型的电子设备中的排名可以根据现有方式,在此不做限定。
更进一步的,对于显示各个项目的测试结果的情况,为了提高用户使用体验,本发明实施例所提供的电子设备性能的测试方法还可以包括:
将执行测试的项目进行分类处理,并将分类后的各个项目的测试结果显示在对应的类别标识下。
例如,将该虚拟机性能和该多任务性能确定为一类,并将该虚拟机性能对应的第一测试结果和该多任务性能对应的第二测试结果显示在用于表明用户体验性能的类别标识下;
将该CPU整数运算性能和CPU浮点数运算性能确定为一类,并将该CPU整数运算性能对应的第三测试结果和该CPU浮点数运算性能对应的第四测试结果显示在用于表示CPU性能的类别标识下;
将该RAM运算性能和该RAM读写速度确定为一类,并将该RAM运算性能对应的第五测试结果和该RAM读写速度对应的第六测试结果显示在用于表明RAM性能的类别标识下;
将该GPU的2D绘图性能和该GPU的3D绘图性能确定为一类,并将该GPU的2D绘图性能对应的第七测试结果和该GPU的3D绘图性能对应的第八测试结果显示在用于表明GPU性能的类别标识下;
将该数据库I/O性能和该存储器性能确定为一类,并将该数据库I/O性能对应的第九测试结果和该存储器性能对应的第十测试结果显示在用于表明存储性能的类别标识下。
可以理解的是,上述分类方式仅仅作为示例,并不应该构成对本发明实施例的限定。并且,浏览器性能和显示器性能可以参与分类显示,也可以不参与分类显示,单独体现出来。
再次强调的是,在获得项目对应的执行结果后即可执行其余项目的测试,而并非在依据执行结果确定该项目的测试结果后执行其余项目的测试;并且,依据执行结果确定硬件项目的测试结果的过程可以在该项目测试完毕后执行,也可以在所有项目的执行结果确定后完成,这都是合理的。
并且,需要说明的是,上述第一执行结果至第十二执行结果,以及第一测试结果至第十二测试结果,仅仅为了区分不同的项目,并不具有任何限定意义。
下面结合具体的实施例,对发明实施例所提供的一种电子设备性能的测试方法进行介绍。
需要说明的是,本发明实施例所提供的电子设备性能的测试方法适用于电子设备。在实际应用中,该电子设备可以包括:智能手机、平板电脑、笔记本等。
如图2所示,一种电子设备性能的测试方法,可以包括:
S201,获得开始测试指令;
当需要测试电子设备的性能时,用户可以对电子设备发出开始测试指令,而该电子设备在获得开始测试指令后,可以响应该测试指令,进而执行后续的步骤S202-步骤S213,以分别对待测试的项目进行测试。
其中,待测试的项目包括:虚拟机性能、多任务性能、RAM运算性能、RAM读写速度、CPU整数运算性能、CPU浮点数运算性能、GPU的2D绘图性能、GPU的3D绘图性能、存储器性能、数据库I/O性能、浏览器性能、显示器性能。
S202,执行该虚拟机性能的测试,获得第一执行时间,并依据该第一执行时间,确定该虚拟机性能对应的第一分数;
需要说明的是,执行虚拟机性能的测试所利用的测试程序可以为依据现有的算法或自行设计的算法所编写的程序,这都是合理的;并且,可以执行一个测试程序来测试虚拟机性能,此时,获得一个第一执行时间,也可以执行至少两个测试程序来测试虚拟机性能,此时,获得至少两个第一执行时间。
举例而言,当获得一个第一执行时间时,依据该第一执行时间,确定虚拟机性能对应的第一分数,可以通过如下方式:
可以从与虚拟机性能相关的预设的执行时间与分数的对应关系中,确定出第一执行时间对应的第一分数,其中,通常情况下,执行时间越短,所对应的分数越高。
当获得至少两个第一执行时间时,依据该第一执行时间,确定虚拟机性能对应的第一分数,可以通过如下方式:
可以从与虚拟机性能相关的执行时间与分数的对应关系中,确定出每一第一执行时间对应的第一分数,并将至少两个第一分数求平均所得的值作为最终的第一分数;或者,在确定出每一第一执行时间对应的第一分数后,确定每一第一执行时间所对应测试程序的预设的权重值,并将各个第一分数与相应权重值相乘,将各个乘积之和确定为最终的第一分数。
需要说明的是,上述确定虚拟机性能的第一分数的方式仅仅作为示例,并不应该构成对本发明实施例的限定。
S203,执行该CPU整数运算性能的测试,获得第二执行时间,并依据该第二执行时间,确定该CPU整数运算性能对应的第二分数;
需要说明的是,执行该CPU整数运算性能的测试所利用的测试程序可以为依据现有的算法或自行设计的算法所编写的程序,这都是合理的;并且,可以执行一个测试程序来测试该CPU整数运算性能,此时,获得一个第二执行时间,也可以执行 至少两个测试程序来测试该CPU整数运算性能,此时,获得至少两个第二执行时间。举例而言,该CPU整数运算性能对应的测试程序可以依据现有的算法或自行设计的算法编写,例如:现有的算法可以为整数排序算法、霍夫曼编码算法或IDEA(International Data Encryption Algorithm,国际数据加密算法),当然,本发明并不局限于此。
其中,确定该CPU整数运算性能对应的第二分数的方式与本实施例中确定虚拟机性能的方式相似,在此不作赘述。
S204,执行该CPU浮点数运算性能的测试,获得第三执行时间,并依据该第三执行时间,确定该CPU浮点数运算性能对应的第三分数;
需要说明的是,执行该CPU浮点数运算性能的测试所利用的测试程序可以为依据现有的涉及浮点数运算的算法或自行设计的算法所编写的程序,这都是合理的;并且,可以执行一个测试程序来测试该CPU浮点数运算性能,此时,获得一个第三执行时间,也可以执行至少两个测试程序来测试该CPU浮点数运算性能,此时,获得至少两个第三执行时间。举例而言,现有的算法可以为傅里叶变换算法或圆周率算法,当然,并不局限于此。
其中,确定该CPU浮点数运算性能对应的第三分数的方式与本实施例中确定虚拟机性能的方式相似,在此不作赘述。
S205,执行该RAM运算性能的测试,获得第四执行时间,并依据该第四执行时间,确定该RAM运算性能对应的第四分数;
需要说明的是,对于执行RAM运算性能的测试,可以通过执行大量复杂的数学运算的方式,从而记录第四执行时间。并且,对于执行该RAM运算性能的测试,可以采用一种测试程序,此时,获得一个第四执行时间;也可以采用至少两种测试程序,此时,获得至少两个第四执行时间。本领域技术人员可以理解的是,在实际应用中,该RAM运算性能的测试程序可以为依据现有的算法或自行设计的算法所编写的程序。例如:现有的算法可以为排序算法或移位算法,当然,并不局限于此。其中,确定该RAM运算性能对应的第四分数的方式与上述虚拟机性能的第一分数的确定方式相似,在此不作赘述。
S206,执行该RAM读写速度的测试,获得第五执行时间,并依据该第五执行时间,确定该RAM读写速度对应的第五分数;
其中,该RAM读写速度即为RAM吞吐量。具体的,对于RAM读写速度的测试,可以通过执行自行编写的测试程序来实现对RAM进行的大量赋值、加法、乘法运算的操作;举例而言,对于执行该RAM读写速度的测试,可以采用一种测试程序,此 时,获得一个第五执行时间;也可以采用至少两种测试程序,此时,获得至少两个第五执行时间。并且,依据该第五执行时间,确定该RAM读写速度对应的第五分数的方式与上述虚拟机性能的第一分数的确定方式相似,在此不作赘述。
S207,执行该多任务性能的测试,获得第六执行时间,并依据该第六执行时间,确定该多任务性能对应的第六分数;
其中,执行该多任务性能的测试可以包括:随机启动多个任务,例如:游戏、播放视频/音频、网页浏览等,并记录电子设备的第六执行时间,进而依据该第六执行时间,确定该多任务性能对应的第六分数。其中,第六执行时间越短,表明该多任务性能越强。并且,依据该第六执行时间,确定该多任务性能对应的第六分数的方式与上述虚拟机性能的第一分数的确定方式相似,在此不作赘述。
S208,执行GPU的2D绘图性能的测试,获得第七执行时间,并依据该第七执行时间,确定该GPU的2D绘图性能对应的第七分数;
需要说明的是,在对GPU的2D绘图性能的测试过程中,CPU通过执行测试程序,会绘制2D图像并显示所绘制的2D图像,而作为第七执行结果的第七执行时间为:绘制2D图像并显示所绘制2D图像所需的时间。其中,执行GPU的2D绘图性能的测试可以利用一种测试程序,从而获得一个第七执行时间,也可以利用至少两种测试程序,从而获得至少两个第七执行时间,这都是合理的。
其中,当获得一个第七执行时间时,可以从与GPU的2D绘图性能相关的执行时间与分数的对应关系中,确定出第七分数,并将所确定出的第七分数作为第七测试结果;而当获得至少两个第七执行时间时,可以从与GPU的2D绘图性能相关的执行时间与分数的对应关系中,确定出至少两个第七分数,并将所确定出的第七分数求平均所得的值作为最终的第七分数;当然,也可以通过设置权重值的方式确定该GPU的2D绘图性能对应的第七分数,当然并不局限于此。
其中,可以通过分别使用OpenGL和Canvas提供的API编写的2D图像测试程序测试GPU的2D绘图性能,获得第七执行时间,从而确定出第七分数,其中,OpenGL(Open Graphics Library)是一种跨编程语言、跨平台的应用程序接口的规格,用于生成二维、三维图像;Canvas是一个新的HTML元素,可使用脚本(通常是JavaScript)来构造图形、动画、游戏和图片。
S209,执行GPU的3D绘图性能的测试,获得第八执行时间,并依据该第八执行时间,确定该GPU的3D绘图性能对应的第八分数;
其中,执行GPU的3D绘图性能的测试可以利用一种测试程序,从而获得一个第八执行时间,也可以利用至少两种测试程序,从而获得至少两个第八执行时间,这 都是合理的。
其中,当获得一个第八执行时间时,可以从与GPU的3D绘图性能相关的执行时间与分数的对应关系中,确定出第八分数,并将所确定出的该第八分数作为第八测试结果;而当获得至少两个第八执行时间时,可以从与GPU的3D绘图性能相关的执行时间与分数的对应关系中,确定出至少两个第八分数,并将所确定出的第八分数求平均所得的值作为最终的第八分数;当然,也可以通过设置权重值的方式确定该GPU的3D绘图性能对应的第八分数,当然并不局限于此。
其中,该GPU的3D绘图性能可以通过使用OpenGL ES 1.1版本和2.0版本相关API(Application Programming Interface,应用程序编程接口)编写的3D测试程序实现测试,通过执行不同类型的测试程序来获取第八执行时间,进而确定出相应的第八分数,其中,OpenGL ES(OpenGL for Embedded Systems)是OpenGL三维图形API的子集,针对手机、平板电脑和游戏主机等嵌入式设备而设计。
S210,执行该数据库I/O性能的测试,获得第九执行时间,并依据该第九执行时间,确定该数据库I/O性能对应的第九分数;
其中,执行数据库I/O性能的测试测试时,可以通过自行编写的不同测试程序分别测试数据库的不同操作,从而获得每一操作对应的第九执行时间,进而根据该第九执行时间确定出该数据库I/O性能对应的第九分数。其中,对数据库的操作可以包括:数据的添加,删除,查找,替换等。其中,依据多个第九执行结果确定该数据库I/O性能对应的第九分数的方式与上述虚拟机性能的第一分数的确定方式相似,在此不作赘述。
S211,执行存储器性能的测试,获得第十执行时间,并依据第十执行时间,确定该存储器性能对应的第十分数;
其中,该储存器性能所针对的存储器可以包括:SD卡和/或EMMC。
其中,执行EMMC性能测试时,可以通过自行编写的不同的测试程序分别获得EMMC的读性能和EMMC的写性能,从而获得每一测试程序对应的第十执行时间,进而依据第十执行时间,确定该EMMC性能对应的第十分数。其中,依据多个第十执行时间确定该EMMC性能对应的第十分数的方式与上述虚拟机性能的第一分数的确定方式相似,在此不作赘述。
需要说明的是,对于存在SD卡的电子设备而言,也可以进一步执行SD性能的测试,其中,与EMMC类似,SD卡性能也包括读性能和写性能的测试。
S212,执行该显示器性能的测试,获得分辨率和PPI,并依据该分辨率和PPI,确定该显示器性能对应的第十一分数;
其中,分辨率越高表明显示器性能越好,而PPI越高也表明显示器性能越好。因此,在确定出分辨率后,可以从分辨率与分数的对应关系中,确定出该分辨率所对应的分数,而从PPI与分数的对应关系中,确定出该PPI所对应的分数,进一步将所确定出的两个分数相加,最终确定出该显示器性能对应的第十一分数。
S213,执行该浏览器性能的测试,获得第十二执行时间,并依据该第十二执行时间,确定该浏览器性能对应的第十二分数;
其中,在实际应用中,浏览器性能测试主要分为两个部分:JavaScript测试和HTML5测试,并依据两者对应的第十二执行时间,确定出浏览器性能对应的第十二分数,例如:将两者的第十二执行时间所对应的分数直接相加作为浏览器性能对应的第十二分数;或者,通过为两者设置权重值的方式,确定出浏览器性能对应的第十二分数。
其中,在实际应用中,JavaScrip测试可以通过Octane和SunSpider两个开源测试方法进行测试,分别得到各自对应的执行时间,并确定每一执行时间所对应的分数,然后分数求和即得到JavaScript性能的分数。其中,Octane在原有V8基准测试集的基础上新设计了五项测试方案,每组方案均选用完整、未经优化的知名web应用库;这些新方案的得分可以直接解释为类似web应用的性能高低与流畅程度。而SunSpider是一个JavaScript基准测试平台,它可以衡量一款浏览器的JavaScript引擎性能。
其中,HTML5测试的项目内容可以包括:图像渲染、像素混合、JavaScript绑定代码的效率、DOM(文件对象模型(Document Object Model)节点、文本排版、图像滚动、页面缩放、WebGL 3D、嵌入视频播放、数据吞吐量中的至少一种。可以理解的是,对于HTML5测试的项目内容的测试可以依据由现有的算法或自行设计的算法所编写的程序,当然,也可以利用现有的测试程序,这都是合理的。例如:对于图像渲染而言,所依据的现有测试程序可以包括See the Sun Canvas、Canvas Crossfader、Aquarium Canvas等;而对于JavaScript绑定代码的效率而言,所依据的现有测试程序可以包括Surf Wax Binder;而对于DOM节点而言,所依据的现有测试程序可以包括DOM Node Surfer等;而对于文本排版而言,所依据的现有测试程序可以包括Reflo;而对于WebGL 3D而言,所依据的现有测试程序可以包括WebGL Jellyfish。
并且,依据该第十二执行时间,确定该浏览器性能对应的第十二分数的方式与上述虚拟机性能的第一分数的确定方式相似,在此不作赘述。
S214,在获得各个待测试的项目的分数后,可以将各个项目的分数显示给用户。
其中,具体的显示方式可以如下:
将该虚拟机性能和该多任务性能确定为一类,并将该虚拟机性能对应的第一分数和该多任务性能对应的第六分数显示在用于表明用户体验性能的类别标识下;
将该CPU整数运算性能和CPU浮点数运算性能确定为一类,并将该CPU整数运算性能对应的第二分数和该CPU浮点数运算性能对应的第三分数显示在用于表示CPU性能的类别标识下;
将该RAM运算性能和该RAM读写速度确定为一类,并将该RAM运算性能对应的第四分数和该RAM读写速度对应的第五分数显示在用于表明RAM性能的类别标识下;
将该GPU的2D绘图性能和该GPU的3D绘图性能确定为一类,并将该GPU的2D绘图性能对应的第七分数和该GPU的3D绘图性能对应的第八分数显示在用于表明GPU性能的类别标识下;
将该数据库I/O性能和该存储器性能确定为一类,并将该数据库I/O性能对应的第九分数和该存储器性能对应的第十分数显示在用于表明存储性能的类别标识下。
将浏览器性能和显示屏性能确定为一类,并将该显示屏性能对应的第十一分数和该浏览器性能对应的第十二分数显示在用于标识其他项目的类别标识下。
可见,本方案中,通过合理的项目测试顺序,可以提高电子设备性能的测试准确性;而且,本方案中可对电子设备的多个项目进行测试,从而能够较为真实全面的反应电子设备的性能。
相应于上述方法实施例,本发明实施例还提供了一种电子设备性能的测试装置,如图3所示,可以包括:
测试指令获得模块310,用于获得开始测试指令;
测试指令响应模块320,用于响应所述开始测试指令,分别对待测试的项目进行测试,所述待测试的项目至少包括:虚拟机性能、多任务性能;
所述测试指令响应模块320,可以包括:
第一执行子模块321,用于执行所述虚拟机性能的测试,获得第一执行结果;
第一测试结果确定子模块322,用于依据所述第一执行结果,确定所述虚拟机性能对应的第一测试结果;
第二执行子模块323,用于在获得所述第一执行结果后,执行所述多任务性能的测试,获得第二执行结果;
第二测试结果确定子模块324,用于依据所述第二执行结果,确定所述多任务性能对应的第二测试结果。
本方案中,在电子设备性能的测试过程中,首先执行虚拟机性能的测试,避免了由于先测试其他项目性能再测虚拟机性能而消耗系统资源、系统温度上升、系统减少对资源的分配,最终导致虚拟机性能的测试不准确的问题;并且,测试多任务性能,能够体现出电子设备的任务调度能力和资源分配能力,以及电子设备的整体的硬件性能,从而进一步模拟了用户实际使用情况,使得测试结果更具参考性和应用意义。可见,本方案中,通过合理的项目测试顺序,可以提高电子设备性能的测试准确性;而且,本方案中可对电子设备的多个项目进行测试,从而能够较为真实全面的反应电子设备的性能。
更进一步的,所述测试指令响应模块320,还可以包括:
第三执行子模块,用于在获得所述第一执行结果后,执行CPU整数性能的测试,获得第三执行结果;
第三测试结果确定子模块,用于依据所述第三执行结果,确定所述CPU整数性能对应的第三测试结果。
更进一步的,所述测试指令响应模块320,还可以包括:
第四执行子模块,用于在获得所述第一执行结果后,执行CPU浮点数运算性能的测试,获得第四执行结果;
第四测试结果确定子模块,用于依据所述第四执行结果,确定所述CPU浮点数运算性能对应的第四测试结果。
更进一步的,所述测试指令响应模块320,还可以包括:
第五执行子模块,用于在获得所述第一执行结果后,执行RAM运算性能的测试,获得第五执行结果;
第五测试结果确定子模块,用于依据所述第五执行结果,确定所述RAM运算性能对应的第五测试结果。
更进一步的,所述测试指令响应模块320,还可以包括:
第六执行子模块,用于在获得所述第一执行结果后,执行RAM读写速度的测试,获得第六执行结果;
第六测试结果确定子模块,用于依据所述第六执行结果,确定所述RAM读写速度对应的第六测试结果。
其中,所述第五执行子模块,用于在获得所述第三执行结果和所述第四执行结果后,执行RAM运算性能的测试,获得第五执行结果;
第五测试结果确定子模块,用于依据所述第五执行结果,确定所述RAM运算性能对应的第五测试结果;
第六执行子模块,用于在获得所述第三执行结果和所述第四执行结果后,执行RAM读写速度的测试,获得第六执行结果;
第六测试结果确定子模块,用于依据所述第六执行结果,确定所述RAM读写速度对应的第六测试结果;
第二执行子模块,用于在获得所述第五执行结果和所述第六执行结果后,执行所述多任务性能的测试,获得第二执行结果;
第二测试结果确定子模块,用于依据所述第二执行结果,确定所述多任务性能对应的第二测试结果。
更进一步的,所述测试指令响应模块320,还可以包括:
第七执行子模块,用于在获得所述第二执行结果后,执行GPU的2D绘图性能的测试,获得第七执行结果;
第七测试结果确定子模块,用于依据所述第七执行结果,确定GPU的2D绘图性能对应的第七测试结果。
更进一步的,所述测试指令响应模块320,还可以包括:
第八执行子模块,用于在获得所述第二执行结果后,执行GPU的3D绘图性能的测试,获得第八执行结果;
第八测试结果确定子模块,用于依据所述第八执行结果,确定所述GPU的3D绘图性能对应的第八测试结果。
更进一步的,所述测试指令响应模块320,还可以包括:
第九执行子模块,用于在获得所述第二执行结果后,执行数据库I/O性能的测试,获得第九执行结果;
第九测试结果确定子模块,用于依据所述第九执行结果,确定所述数据库I/O性能对应的第九测试结果。
更进一步的,所述测试指令响应模块320,还可以包括:
第十执行子模块,用于在获得所述第二执行结果后,执行存储器性能的测试,获得第十执行结果;
第十测试结果确定子模块,用于依据所述第十执行结果,确定所述存储器性能对应的第十测试结果。
更进一步的,所述测试指令响应模块320,还可以包括:
第十一执行子模块,用于在获得所述第一执行结果后,执行显示器性能的测试,获得第十一执行结果;
第十一测试结果确定子模块,用于依据所述第十一执行结果,确定所述显示器 性能对应的第十一测试结果。
更进一步的,所述测试指令响应模块320,还可以包括:
第十二执行模块,用于在获得所述第一执行结果后,执行浏览器性能的测试,获得第十二执行结果;
第十二测试结果确定子模块,用于依据所述第十二执行结果,确定所述浏览器性能对应的第十二测试结果。
更进一步的,本发明实施例所提供的所述电子设备性能的测试装置,还可以包括:
分类显示模块,用于将执行测试的项目进行分类处理,并将分类后的各个项目的测试结果显示在对应的类别标识下。
对于装置实施例而言,由于其基本相似于方法实施例,所以描述的比较简单,相关之处参见方法实施例的部分说明即可。
本发明实施例还提供了一种可读存储介质,用于存储计算机程序,所述计算机程序在运行时用于执行本发明上述实施例所公开的电子设备性能的测试方法。
需要说明的是,在本文中,诸如第一和第二等之类的关系术语仅仅用来将一个实体或者操作与另一个实体或操作区分开来,而不一定要求或者暗示这些实体或操作之间存在任何这种实际的关系或者顺序。而且,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、物品或者设备中还存在另外的相同要素。
本领域普通技术人员可以理解实现上述方法实施方式中的全部或部分步骤是可以通过程序来指令相关的硬件来完成,所述的程序可以存储于计算机可读取存储介质中,这里所称得的存储介质,如:ROM/RAM、磁碟、光盘等。
以上所述仅为本发明的较佳实施例而已,并非用于限定本发明的保护范围。凡在本发明的精神和原则之内所作的任何修改、等同替换、改进等,均包含在本发明的保护范围内。

Claims (29)

  1. 一种电子设备性能的测试方法,其特征在于,包括:
    获得开始测试指令;
    响应所述开始测试指令,分别对待测试的项目进行测试,所述待测试的项目至少包括:虚拟机性能、多任务性能;
    其中,所述分别对待测试的项目进行测试包括:
    执行所述虚拟机性能的测试,获得第一执行结果,依据所述第一执行结果,确定所述虚拟机性能对应的第一测试结果;
    在获得所述第一执行结果后,执行所述多任务性能的测试,获得第二执行结果,并依据所述第二执行结果,确定所述多任务性能对应的第二测试结果。
  2. 根据权利要求1所述的方法,其特征在于,所述待测试的项目还包括:CPU整数运算性能;
    在获得所述第一执行结果后,执行所述CPU整数性能的测试,获得第三执行结果,并依据所述第三执行结果,确定所述CPU整数性能对应的第三测试结果。
  3. 根据权利要求1或2所述的方法,其特征在于,所述待测试的项目还包括:CPU浮点数运算性能;
    在获得所述第一执行结果后,执行所述CPU浮点数运算性能的测试,获得第四执行结果,并依据所述第四执行结果,确定所述CPU浮点数运算性能对应的第四测试结果。
  4. 根据权利要求1-3中任一项所述的方法,其特征在于,所述待测试的项目还包括:RAM运算性能;
    在获得所述第一执行结果后,执行所述RAM运算性能的测试,获得第五执行结果,并依据所述第五执行结果,确定所述RAM运算性能对应的第五测试结果。
  5. 根据权利要求1-4中任一项所述的方法,其特征在于,所述待测试的项目还包括:RAM读写速度;
    在获得所述第一执行结果后,执行所述RAM读写速度的测试,获得第六执行结果,并依据所述第六执行结果,确定所述RAM读写速度对应的第六测试结果。
  6. 根据权利要求1-5中任一项所述的方法,其特征在于,在获得所述第三执行结果和所述第四执行结果后,执行所述RAM运算性能的测试,获得第五执行结果,并依据所述第五执行结果,确定所述RAM运算性能对应的第五测试结果;
    在获得所述第三执行结果和所述第四执行结果后,执行所述RAM读写速度的测试,获得第六执行结果,并依据所述第六执行结果,确定所述RAM读写速度对应的 第六测试结果;
    在获得所述第五执行结果和所述第六执行结果后,执行所述多任务性能的测试,获得第二执行结果,并依据所述第二执行结果,确定所述多任务性能对应的第二测试结果。
  7. 根据权利要求1-6中任一项所述的方法,其特征在于,所述待测试的项目还包括:GPU的2D绘图性能;
    在获得所述第二执行结果后,执行所述GPU的2D绘图性能的测试,获得第七执行结果,并依据所述第七执行结果,确定所述GPU的2D绘图性能对应的第七测试结果。
  8. 根据权利要求1-7中任一项所述的方法,其特征在于,所述待测试的项目还包括:GPU的3D绘图性能;
    在获得所述第二执行结果后,执行所述GPU的3D绘图性能的测试,获得第八执行结果,并依据所述第八执行结果,确定所述GPU的3D绘图性能对应的第八测试结果。
  9. 根据权利要求1-8中任一项所述的方法,其特征在于,所述待测试的项目还包括:数据库I/O性能;
    在获得所述第二执行结果后,执行所述数据库I/O性能的测试,获得第九执行结果,并依据所述第九执行结果,确定所述数据库I/O性能对应的第九测试结果。
  10. 根据权利要求1-9中任一项所述的方法,其特征在于,所述待测试的项目还包括:存储器性能;
    在获得所述第二执行结果后,执行所述存储器性能的测试,获得第十执行结果,并依据所述第十执行结果,确定所述存储器性能对应的第十测试结果。
  11. 根据权利要求10所述的方法,其特征在于,所述储存器性能所针对的存储器包括:SD卡和/或EMMC。
  12. 根据权利要求1-11中任一项所述的方法,其特征在于,所述待测试的项目还包括:显示器性能;
    在获得所述第一执行结果后,执行所述显示器性能的测试,获得第十一执行结果,并依据所述第十一执行结果,确定所述显示器性能对应的第十一测试结果。
  13. 根据权利要求1-12中任一项所述的方法,其特征在于,所述待测试的项目还包括:浏览器性能;
    在获得所述第一执行结果后,执行所述浏览器性能的测试,获得第十二执行结果,并依据所述第十二执行结果,确定所述浏览器性能对应的第十二测试结果。
  14. 根据权利要求1-13中任一项所述的方法,其特征在于,还包括:
    将执行测试的项目进行分类处理,并将分类后的各个项目的测试结果显示在对应的类别标识下。
  15. 根据权利要求14所述的方法,其特征在于,所述将执行测试的项目进行分类处理,并将分类后的各个项目对应的测试结果显示在对应的类别标识下,包括:
    将所述虚拟机性能和所述多任务性能确定为一类,并将所述虚拟机性能对应的第一测试结果和所述多任务性能对应的第二测试结果显示在用于表明用户体验性能的类别标识下;
    将所述CPU整数运算性能和CPU浮点数运算性能确定为一类,并将所述CPU整数运算性能对应的第三测试结果和所述CPU浮点数运算性能对应的第四测试结果显示在用于表示CPU性能的类别标识下;
    将所述RAM运算性能和所述RAM读写速度确定为一类,并将所述RAM运算性能对应的第五测试结果和所述RAM读写速度对应的第六测试结果显示在用于表明RAM性能的类别标识下;
    将所述GPU的2D绘图性能和所述GPU的3D绘图性能确定为一类,并将所述GPU的2D绘图性能对应的第七测试结果和所述GPU的3D绘图性能对应的第八测试结果显示在用于表明GPU性能的类别标识下;
    将所述数据库I/O性能和所述存储器性能确定为一类,并将所述数据库I/O性能对应的第九测试结果和所述存储器性能对应的第十测试结果显示在用于表明存储性能的类别标识下。
  16. 一种电子设备性能的测试装置,其特征在于,包括:
    测试指令获得模块,用于获得开始测试指令;
    测试指令响应模块,用于响应所述开始测试指令,分别对待测试的项目进行测试,所述待测试的项目至少包括:虚拟机性能、多任务性能;
    所述测试指令响应模块,包括:
    第一执行子模块,用于执行所述虚拟机性能的测试,获得第一执行结果;
    第一测试结果确定子模块,用于依据所述第一执行结果,确定所述虚拟机性能对应的第一测试结果;
    第二执行子模块,用于在获得所述第一执行结果后,执行所述多任务性能的测试,获得第二执行结果;
    第二测试结果确定子模块,用于依据所述第二执行结果,确定所述多任务性能对应的第二测试结果。
  17. 根据权利要求16所述的测试装置,其特征在于,所述测试指令响应模块,还包括:
    第三执行子模块,用于在获得所述第一执行结果后,执行CPU整数性能的测试,获得第三执行结果;
    第三测试结果确定子模块,用于依据所述第三执行结果,确定所述CPU整数性能对应的第三测试结果。
  18. 根据权利要求16或17所述的测试装置,其特征在于,所述测试指令响应模块,还包括:
    第四执行子模块,用于在获得所述第一执行结果后,执行CPU浮点数运算性能的测试,获得第四执行结果;
    第四测试结果确定子模块,用于依据所述第四执行结果,确定所述CPU浮点数运算性能对应的第四测试结果。
  19. 根据权利要求16-18中任一项所述的测试装置,其特征在于,所述测试指令响应模块,还包括:
    第五执行子模块,用于在获得所述第一执行结果后,执行RAM运算性能的测试,获得第五执行结果;
    第五测试结果确定子模块,用于依据所述第五执行结果,确定所述RAM运算性能对应的第五测试结果。
  20. 根据权利要求16-19中任一项所述的方法,其特征在于,所述测试指令响应模块,还包括:
    第六执行子模块,用于在获得所述第一执行结果后,执行RAM读写速度的测试,获得第六执行结果;
    第六测试结果确定子模块,用于依据所述第六执行结果,确定所述RAM读写速度对应的第六测试结果。
  21. 根据权利要求16-20中任一项所述的测试装置,其特征在于,所述第五执行子模块,用于在获得所述第三执行结果和所述第四执行结果后,执行RAM运算性能的测试,获得第五执行结果;
    第五测试结果确定子模块,用于依据所述第五执行结果,确定所述RAM运算性能对应的第五测试结果;
    第六执行子模块,用于在获得所述第三执行结果和所述第四执行结果后,执行RAM读写速度的测试,获得第六执行结果;
    第六测试结果确定子模块,用于依据所述第六执行结果,确定所述RAM读写速 度对应的第六测试结果;
    第二执行子模块,用于在获得所述第五执行结果和所述第六执行结果后,执行所述多任务性能的测试,获得第二执行结果;
    第二测试结果确定子模块,用于依据所述第二执行结果,确定所述多任务性能对应的第二测试结果。
  22. 根据权利要求16-21中任一项所述的测试装置,其特征在于,所述测试指令响应模块,还包括:
    第七执行子模块,用于在获得所述第二执行结果后,执行GPU的2D绘图性能的测试,获得第七执行结果;
    第七测试结果确定子模块,用于依据所述第七执行结果,确定GPU的2D绘图性能对应的第七测试结果。
  23. 根据权利要求16-22中任一项所述的测试装置,其特征在于,所述测试指令响应模块,还包括:
    第八执行子模块,用于在获得所述第二执行结果后,执行GPU的3D绘图性能的测试,获得第八执行结果;
    第八测试结果确定子模块,用于依据所述第八执行结果,确定所述GPU的3D绘图性能对应的第八测试结果。
  24. 根据权利要求16-23中任一项所述的测试装置,其特征在于,所述测试指令响应模块,还包括:
    第九执行子模块,用于在获得所述第二执行结果后,执行数据库I/O性能的测试,获得第九执行结果;
    第九测试结果确定子模块,用于依据所述第九执行结果,确定所述数据库I/O性能对应的第九测试结果。
  25. 根据权利要求16-24中任一项所述的测试装置,其特征在于,所述测试指令响应模块,还包括:
    第十执行子模块,用于在获得所述第二执行结果后,执行存储器性能的测试,获得第十执行结果;
    第十测试结果确定子模块,用于依据所述第十执行结果,确定所述存储器性能对应的第十测试结果。
  26. 根据权利要求16-25中任一项所述的测试装置,其特征在于,所述测试指令响应模块,还包括:
    第十一执行子模块,用于在获得所述第一执行结果后,执行显示器性能的测试, 获得第十一执行结果;
    第十一测试结果确定子模块,用于依据所述第十一执行结果,确定所述显示器性能对应的第十一测试结果。
  27. 根据权利要求16-26中任一项所述的测试装置,其特征在于,所述测试指令响应模块,还包括:
    第十二执行模块,用于在获得所述第一执行结果后,执行浏览器性能的测试,获得第十二执行结果;
    第十二测试结果确定子模块,用于依据所述第十二执行结果,确定所述浏览器性能对应的第十二测试结果。
  28. 根据权利要求16-27中任一项所述的测试装置,其特征在于,还包括:
    分类显示模块,用于将执行测试的项目进行分类处理,并将分类后的各个项目的测试结果显示在对应的类别标识下。
  29. 一种可读存储介质,其特征在于,用于存储计算机程序,所述计算机程序在运行时用于执行以下步骤:
    获得开始测试指令;
    响应所述开始测试指令,分别对待测试的项目进行测试,所述待测试的项目至少包括:虚拟机性能、多任务性能;
    其中,所述分别对待测试的项目进行测试包括:
    执行所述虚拟机性能的测试,获得第一执行结果,依据所述第一执行结果,确定所述虚拟机性能对应的第一测试结果;
    在获得所述第一执行结果后,执行所述多任务性能的测试,获得第二执行结果,并依据所述第二执行结果,确定所述多任务性能对应的第二测试结果。
PCT/CN2014/087717 2013-09-30 2014-09-28 电子设备性能的测试方法及装置 WO2015043527A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201310462144.4A CN103488569B (zh) 2013-09-30 2013-09-30 电子设备性能的测试方法及装置
CN201310462144.4 2013-09-30

Publications (1)

Publication Number Publication Date
WO2015043527A1 true WO2015043527A1 (zh) 2015-04-02

Family

ID=49828821

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2014/087717 WO2015043527A1 (zh) 2013-09-30 2014-09-28 电子设备性能的测试方法及装置

Country Status (2)

Country Link
CN (1) CN103488569B (zh)
WO (1) WO2015043527A1 (zh)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110968467A (zh) * 2019-12-16 2020-04-07 冀方 一种gpu和算法的远程自动测试方法
CN111563013A (zh) * 2020-04-28 2020-08-21 外芯科技(上海)有限公司 一种gpu性能测试装置
CN112737886A (zh) * 2020-12-29 2021-04-30 交控科技股份有限公司 一种工装测试方法及系统

Families Citing this family (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103488569B (zh) * 2013-09-30 2016-03-09 北京安兔兔科技有限公司 电子设备性能的测试方法及装置
CN104320522B (zh) * 2014-05-21 2018-05-01 深圳月牙科技有限公司 智能终端的性能检测方法和系统
CN104320523B (zh) * 2014-05-21 2017-08-11 深圳月牙科技有限公司 智能终端的性能展示方法和系统
CN104035875A (zh) * 2014-06-30 2014-09-10 北京安兔兔科技有限公司 浏览器性能测试方法、系统、终端设备及其性能测试方法
CN105204988B (zh) * 2014-06-30 2018-03-06 北京安兔兔科技有限公司 电子设备游戏性能的测试方法及系统
CN104794058B (zh) * 2015-05-07 2017-10-10 合肥中科云巢科技有限公司 一种云桌面虚拟环境性能的测试方法
CN106201870A (zh) * 2016-07-01 2016-12-07 浪潮电子信息产业股份有限公司 一种测试gpu的方法及装置
CN106407053A (zh) * 2016-08-31 2017-02-15 浪潮电子信息产业股份有限公司 一种基于VMware的GPU虚拟化性能测试方法
CN106526367A (zh) * 2016-10-26 2017-03-22 深圳市赛格导航科技股份有限公司 一种电子设备测试方法及装置
CN109213663A (zh) * 2018-08-06 2019-01-15 成都安易迅科技有限公司 一种手机人工智能算力的测评方法

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102279796A (zh) * 2011-08-25 2011-12-14 北京神州绿盟信息安全科技股份有限公司 一种软件兼容性测试的方法和设备
US20130086557A1 (en) * 2010-06-21 2013-04-04 Arul Murugan Alwar System for testing and certifying a virtual appliance on a customer computer system
CN103455396A (zh) * 2013-09-03 2013-12-18 北京安兔兔科技有限公司 电子设备硬件性能的测试方法及装置
CN103488569A (zh) * 2013-09-30 2014-01-01 北京安兔兔科技有限公司 电子设备性能的测试方法及装置
CN103995763A (zh) * 2014-06-06 2014-08-20 北京安兔兔科技有限公司 电子设备性能的测试方法及装置

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7844928B2 (en) * 2008-01-11 2010-11-30 International Business Machines Corporation Method and apparatus for evaluating integrated circuit design performance using enhanced basic block vectors that include data dependent information
CN102253874A (zh) * 2011-08-09 2011-11-23 广东电网公司电力科学研究院 服务器测试方法及测试系统
CN103207821B (zh) * 2013-05-03 2017-04-05 北京百度网讯科技有限公司 Cpu性能评估方法与装置

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130086557A1 (en) * 2010-06-21 2013-04-04 Arul Murugan Alwar System for testing and certifying a virtual appliance on a customer computer system
CN102279796A (zh) * 2011-08-25 2011-12-14 北京神州绿盟信息安全科技股份有限公司 一种软件兼容性测试的方法和设备
CN103455396A (zh) * 2013-09-03 2013-12-18 北京安兔兔科技有限公司 电子设备硬件性能的测试方法及装置
CN103488569A (zh) * 2013-09-30 2014-01-01 北京安兔兔科技有限公司 电子设备性能的测试方法及装置
CN103995763A (zh) * 2014-06-06 2014-08-20 北京安兔兔科技有限公司 电子设备性能的测试方法及装置

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110968467A (zh) * 2019-12-16 2020-04-07 冀方 一种gpu和算法的远程自动测试方法
CN111563013A (zh) * 2020-04-28 2020-08-21 外芯科技(上海)有限公司 一种gpu性能测试装置
CN112737886A (zh) * 2020-12-29 2021-04-30 交控科技股份有限公司 一种工装测试方法及系统
CN112737886B (zh) * 2020-12-29 2022-09-02 交控科技股份有限公司 一种工装测试方法、系统、电子设备和存储介质

Also Published As

Publication number Publication date
CN103488569A (zh) 2014-01-01
CN103488569B (zh) 2016-03-09

Similar Documents

Publication Publication Date Title
WO2015043527A1 (zh) 电子设备性能的测试方法及装置
WO2015032282A1 (zh) 电子设备硬件性能的测试方法及装置
US20110173589A1 (en) Cross-Browser Interactivity Testing
CN109471805B (zh) 资源测试方法及装置、存储介质、电子设备
Yoon A study on the performance of Android platform
CA2880345C (en) Hit testing method and apparatus
US20090125854A1 (en) Automated generation of theoretical performance analysis based upon workload and design configuration
CN104268047B (zh) 电子设备性能的测试方法及装置
US9064233B2 (en) Methods and apparatus for device-specific analytics data visualization
CN103995763A (zh) 电子设备性能的测试方法及装置
US9852244B2 (en) Efficient waveform generation for emulation
CN107193747B (zh) 代码测试方法、装置和计算机设备
US11551328B2 (en) Graphics energy profiling system and method
CN113018870A (zh) 一种数据处理方法、装置及计算机可读存储介质
CN110959153B (zh) 使用灵活后处理的应用分析
KR20110073362A (ko) 가상 태스크를 이용한 멀티-코어의 성능 분석용 관계 모델링
Selay et al. Adaptive random testing in detecting layout faults of web applications
CN116974872A (zh) Gpu卡性能测试方法、装置、电子设备及可读存储介质
CN111708704A (zh) 一种云真机测试方法、装置、终端及存储介质
CN110544166A (zh) 样本生成方法、装置及存储介质
US9811448B2 (en) Event-driven software testing
CN110930499B (zh) 一种3d数据处理方法及装置
CN113268221A (zh) 文件匹配方法、装置、存储介质及计算机设备
CN115686994A (zh) 应用程序卡顿监控方法、装置、计算机设备和存储介质
CN107239391B (zh) 一种应用程序的测试方法、装置及终端

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 14847084

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205N DATED 07/06/2016)

122 Ep: pct application non-entry in european phase

Ref document number: 14847084

Country of ref document: EP

Kind code of ref document: A1