CN113608953A - Test data generation method and device, electronic equipment and readable storage medium - Google Patents

Test data generation method and device, electronic equipment and readable storage medium Download PDF

Info

Publication number
CN113608953A
CN113608953A CN202110720440.4A CN202110720440A CN113608953A CN 113608953 A CN113608953 A CN 113608953A CN 202110720440 A CN202110720440 A CN 202110720440A CN 113608953 A CN113608953 A CN 113608953A
Authority
CN
China
Prior art keywords
data
power consumption
test data
test
working stage
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202110720440.4A
Other languages
Chinese (zh)
Other versions
CN113608953B (en
Inventor
张斌
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Suzhou Inspur Intelligent Technology Co Ltd
Original Assignee
Suzhou Inspur Intelligent Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Suzhou Inspur Intelligent Technology Co Ltd filed Critical Suzhou Inspur Intelligent Technology Co Ltd
Priority to CN202110720440.4A priority Critical patent/CN113608953B/en
Publication of CN113608953A publication Critical patent/CN113608953A/en
Application granted granted Critical
Publication of CN113608953B publication Critical patent/CN113608953B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3058Monitoring arrangements for monitoring environmental properties or parameters of the computing system or of the computing system component, e.g. monitoring of power, currents, temperature, humidity, position, vibrations
    • G06F11/3062Monitoring arrangements for monitoring environmental properties or parameters of the computing system or of the computing system component, e.g. monitoring of power, currents, temperature, humidity, position, vibrations where the monitored property is the power consumption
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/34Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment
    • G06F11/3409Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment for performance assessment
    • G06F11/3428Benchmarking
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Computing Systems (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Hardware Design (AREA)
  • Power Sources (AREA)

Abstract

The application discloses a test data generation method and device, electronic equipment and a readable storage medium. The method comprises the steps of collecting Power consumption data of each working stage of the SPEC Power when the running of a Power consumption test program is monitored in the running process of the SPEC Power. And performing data preprocessing on the power consumption data to obtain the abnormal data and the standard power consumption data which are not influenced by data floating. When the fact that the SPEC Power test is finished is monitored, reading test data automatically generated by the SPEC Power; and calibrating the test data by using the standard power consumption data to generate final test data. The Power consumption data accuracy degree that collects in this application can improve SPEC Power test procedure effectively promotes the energy consumption of server and compares the test performance.

Description

Test data generation method and device, electronic equipment and readable storage medium
Technical Field
The present application relates to the field of computer technologies, and in particular, to a test data generation method and apparatus, an electronic device, and a readable storage medium.
Background
SPEC Power is a Performance/Power consumption benchmark test developed by SPEC (Standard Performance Evaluation Corporation) for evaluating the Power consumption of servers running java-based applications, a server Power consumption test Standard accepted by all server vendors. The SPEC Power test has 14 working phases or levels in total: 3 pre-pressure tests, 10 normal pressure tests (decreasing from 100% to 10%), and 1 standby pressure test (0 load, only power consumption is counted). Specifically, SPEC Powershi calculates the performance of the overall server by using JDK of standard Java, and obtains a test mode of workload/energy consumption ratio of the server according to the power consumption of 11 different workload regions, it applies specijbb as workload, first runs for 3 times with full load in real time, obtains the highest performance value of the server system by calculating an average value, then the system runs the workload by 100%, 90%, 80%, 10%, …, 0% (idle) with this as reference, the utilization rate of the system is also decreased in turn, and the performance operation result is recorded in ssj _ ops. And meanwhile, a power meter connected with a system power supply can record the power condition of the system in real time, and finally the system can accumulate and divide the performance and the power to obtain a performance power consumption ratio.
In the SPEC Power test process, a Power meter is adopted in the related technology to collect the Power consumption value of the SPEC Power, data are read once per second and recorded, and in the 14 level test processes, the Power consumption statistics of each level are the average value of all Power consumption readings of the section. Because the Power consumption is integrated into the SPEC Power program after being read to obtain an average value, if the voltage is unstable, a scene of-1 appears in the collected Power consumption data, and a normal test report cannot be issued finally. In addition, the power consumption statistics of each level are the average value of all power consumption readings, and the power consumption value is also included when the power consumption value fluctuates greatly in the middle, so that the final data is not very accurate.
Disclosure of Invention
The application provides a test data generation method, a test data generation device, an electronic device and a readable storage medium, so that the accuracy of Power consumption data acquired in the SPEC Power test process is improved, and the energy consumption ratio test performance of a server is effectively improved.
In order to solve the above technical problems, embodiments of the present invention provide the following technical solutions:
an embodiment of the present invention provides a test data generation method, including:
in the operating process of the SPEC Power, when the operation of a Power consumption test program is monitored, acquiring Power consumption data of each working stage of the SPEC Power;
performing data preprocessing on the power consumption data to obtain abnormal data and standard power consumption data which are not influenced by data floating;
when the SPEC Power test is monitored to be finished, reading test data automatically generated by the SPEC Power;
and calibrating the test data by using the standard power consumption data to generate final test data.
Optionally, the calibrating the test data by using the standard power consumption data includes:
sequentially comparing the test data and the standard power consumption data of each working stage;
if the test data has an error value, replacing the test data of the corresponding working stage with the standard power consumption data of all the working stages to serve as the final test data;
if the data difference between the test data of the target working stage and the corresponding standard power consumption data is not within the preset difference range, replacing the test data of the working stage with the standard power consumption data of the target working stage to serve as the final test data of the target working stage;
and if the data difference between the test data of the target working stage and the corresponding standard power consumption data is within a preset difference range, the test data of the target working stage is the final test data of the working stage.
Optionally, after the calibrating the test data by using the standard power consumption data to generate final test data, the method further includes:
and generating a log containing all operations in the final test data generation process.
Optionally, the performing data preprocessing on the power consumption data includes:
removing data which are not within a preset floating allowable range in the power consumption data of the current working stage from the power consumption data of each working stage to obtain stable data;
dividing the stable data into a plurality of groups of subdata, and calculating the arithmetic mean value of each group of subdata;
and calculating to obtain the standard power consumption data of the current working stage according to the arithmetic mean value of each group of sub data.
Optionally, the calculating the standard power consumption data of the current working stage according to the arithmetic mean of each group of sub-data includes:
and calculating the geometric mean of the arithmetic mean of each group of sub-data, and taking the geometric mean as the standard power consumption data of the current working stage.
Another aspect of the embodiments of the present invention provides a test data generating apparatus, including:
the data acquisition module is used for acquiring Power consumption data of each working stage of the SPEC Power when monitoring that a Power consumption test program runs in the running process of the SPEC Power;
the standard data generation module is used for carrying out data preprocessing on the power consumption data to obtain abnormal data and standard power consumption data which are not influenced by data floating;
the data reading module is used for reading test data automatically generated by the SPEC Power when the fact that the SPEC Power test is finished is monitored;
and the test data generation module is used for calibrating the test data by using the standard power consumption data to generate final test data.
Optionally, the test data generating module is further configured to:
sequentially comparing the test data and the standard power consumption data of each working stage;
if the test data has an error value, replacing the test data of the corresponding working stage with the standard power consumption data of all the working stages to serve as the final test data;
if the data difference between the test data of the target working stage and the corresponding standard power consumption data is not within the preset difference range, replacing the test data of the working stage with the standard power consumption data of the target working stage to serve as the final test data of the target working stage;
and if the data difference between the test data of the target working stage and the corresponding standard power consumption data is within a preset difference range, the test data of the target working stage is the final test data of the working stage.
Optionally, the standard data generating module is further configured to:
removing data which are not within a preset floating allowable range in the power consumption data of the current working stage from the power consumption data of each working stage to obtain stable data;
dividing the stable data into a plurality of groups of subdata, and calculating the arithmetic mean value of each group of subdata;
and calculating to obtain the standard power consumption data of the current working stage according to the arithmetic mean value of each group of sub data.
An embodiment of the present invention further provides an electronic device, which includes a processor, and the processor is configured to implement the steps of the test data generation method according to any one of the foregoing items when executing the computer program stored in the memory.
Finally, an embodiment of the present invention provides a readable storage medium, where a computer program is stored, and when being executed by a processor, the computer program implements the steps of the test data generating method according to any one of the previous items.
The technical scheme provided by the application has the advantages that the Power consumption data are synchronously acquired firstly in the SPEC Power test process, abnormal data in the acquired Power consumption data are removed through data preprocessing, the influence of data floating is reduced, the standard Power consumption data which can be used for automatically calibrating the test data automatically generated by the SPEC Power are obtained, the accuracy of the acquired Power consumption test data in the SPEC Power test process is improved to the greatest extent, the problem that the Power consumption value is-1 due to overlarge voltage fluctuation can be effectively avoided, and the energy consumption ratio test performance of a server is favorably improved.
In addition, the embodiment of the invention also provides a corresponding implementation device, electronic equipment and a readable storage medium for the test data generation method, so that the method has higher practicability, and the device, the electronic equipment and the readable storage medium have corresponding advantages.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions of the related art, the drawings required to be used in the description of the embodiments or the related art will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to these drawings without creative efforts.
Fig. 1 is a schematic flowchart of a test data generation method according to an embodiment of the present invention;
FIG. 2 is a schematic flow chart illustrating another test data generation method according to an embodiment of the present invention;
fig. 3 is a structural diagram of a specific embodiment of a test data generation apparatus according to an embodiment of the present invention;
fig. 4 is a block diagram of an embodiment of an electronic device according to an embodiment of the present invention.
Detailed Description
In order that those skilled in the art will better understand the disclosure, the invention will be described in further detail with reference to the accompanying drawings and specific embodiments. It is to be understood that the described embodiments are merely exemplary of the invention, and not restrictive of the full scope of the invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The terms "first," "second," "third," "fourth," and the like in the description and claims of this application and in the above-described drawings are used for distinguishing between different objects and not for describing a particular order. Furthermore, the terms "comprising" and "having," as well as any variations thereof, are intended to cover non-exclusive inclusions. For example, a process, method, system, article, or apparatus that comprises a list of steps or elements is not limited to only those steps or elements but may include other steps or elements not expressly listed.
Having described the technical solutions of the embodiments of the present invention, various non-limiting embodiments of the present application are described in detail below.
Referring to fig. 1, fig. 1 is a schematic flow chart of a test data generation method according to an embodiment of the present invention, where the embodiment of the present invention may include the following:
s101: in the operating process of the SPEC Power, when the Power consumption test program is monitored to operate, Power consumption data of each working stage of the SPEC Power are collected.
During the process of testing the Power consumption of the server by the SPEC Power, the operating stages of the SPEC Power include three pre-pressure tests, ten formal pressure tests and one standby pressure test. According to the power consumption data acquisition method and device, the power consumption test program is triggered when the power consumption test program is monitored to run, the reading mode of the power consumption data can be flexibly selected according to the actual application scene, and the power consumption data can be acquired in seconds.
S102: and performing data preprocessing on the power consumption data to obtain standard power consumption data which is free of abnormal data and is not influenced by data floating.
The purpose of the data preprocessing in this step is that the power consumption data obtained after the preprocessing, that is, the standard power consumption data, does not include abnormal data, such as data that is particularly large or data that is particularly small compared to other data, and is power consumption data that is not affected by data floating.
S103: and reading test data automatically generated by the SPEC Power when the fact that the SPEC Power test is finished is monitored.
After the SPEC Power completes the server test, test data is automatically generated, and by default, the data is stored in the raw file of the result directory of the SPEC Power. Of course, a person skilled in the art may preset a storage path of the test data, and then read the automatically generated test data into the preset storage path.
S104: and calibrating the test data by using the standard power consumption data to generate final test data.
In the embodiment, the standard power consumption data is used as a standard to automatically calibrate the test data, so that the power consumption data of-1 caused by voltage fluctuation does not exist in the test data, and compared with some data with large fluctuation amplitude and other abnormal data, the accuracy of the test data is improved.
For the convenience of tracing, especially for fault location, a log containing all operations in the final test data generation process may be generated, that is, the operations corresponding to the steps S101-S104 are recorded in the log.
In the technical scheme provided by the embodiment of the invention, the Power consumption data are synchronously acquired firstly in the SPEC Power test process, abnormal data in the acquired Power consumption data are removed through data preprocessing, the influence of data floating is reduced, and the standard Power consumption data which can be used for automatically calibrating the test data automatically generated by the SPEC Power are obtained, so that the accuracy of the acquired Power consumption test data in the SPEC Power test process is improved to the maximum extent, the problem that the Power consumption value is-1 due to overlarge voltage fluctuation can be effectively avoided, and the improvement of the energy consumption ratio test performance of a server is facilitated.
In the above embodiment, how to perform step S104 is not limited, and an implementation manner of the calibration test data in this embodiment may include the following steps:
sequentially comparing the test data and the standard power consumption data of each working stage;
if the test data has an error value, replacing the test data of the corresponding working stage with the standard power consumption data of all the working stages to serve as final test data;
if the data difference between the test data of the target working stage and the corresponding standard power consumption data is not within the preset difference range, replacing the test data of the working stage with the standard power consumption data of the target working stage to serve as the final test data of the target working stage;
and if the data difference between the test data of the target working stage and the corresponding standard power consumption data is within the preset difference range, the test data of the target working stage is the final test data of the working stage.
The error value of the present embodiment includes, but is not limited to, power consumption data of-1 due to voltage fluctuation, and the preset margin range may be determined according to an actual server parameter, for example, 2%. And each working stage has corresponding test data and standard power consumption data, and the test data of each working node is calibrated by adopting the method, so that the finally obtained test data is high-accuracy data, and the test performance of the server is improved.
In the foregoing embodiment, how to perform step S102 is not limited, and an implementation manner of data preprocessing in this embodiment may include the following steps:
removing data which are not within a preset floating allowable range in the power consumption data of the current working stage from the power consumption data of each working stage to obtain stable data;
dividing the stable data into a plurality of groups of subdata, and calculating the arithmetic mean value of each group of subdata;
and calculating to obtain standard power consumption data of the current working stage according to the arithmetic mean value of each group of sub data. The geometric mean value of the arithmetic mean value of each group of subdata can be calculated, and the geometric mean value is used as standard power consumption data of the current working stage.
The preset allowable floating range may be determined according to actual server parameters, for example, within ± 2%. According to the embodiment, a part of abnormal power consumption data is automatically screened out, then the arithmetic mean value is taken firstly, and then the geometric mean value is taken for calculation, so that the influence of data floating on the result can be reduced, and the accuracy of the final data is improved to the maximum extent.
In order to make the technical solution of the present application more clearly understood by those skilled in the art, the present application further describes the whole technical solution by using an illustrative example in conjunction with fig. 2, in this embodiment, a computer program corresponding to the test data generation method described in any one of the above embodiments may be packaged as a functional module, which may be called an SPEC Power automatic calibration apparatus, and the SPEC Power automatic calibration apparatus synchronously acquires Power consumption data and automatically calibrates the Power consumption data in the SPEC Power test process, where the specific implementation method includes the following steps:
and (3) establishing a SPEC Power test environment, and deploying an automatic calibration device for the Power consumption of the SPEC Power.
After the SPEC Power program is started for testing, the SPEC Power Power consumption calibration device is started.
In this step, after the SPEC Power consumption calibration device is started, the SPEC Power program is monitored, and if the SPEC Power voltage measuring program is not monitored, the SPEC Power consumption calibration device prompts and quits; and if the SPECPower pressure measurement program is monitored to run, acquiring power consumption data in seconds. And after Power consumption data are collected in each level pressure measurement area, calculation and comparison are carried out, large fluctuation is eliminated, 2% of the Power consumption data are allowed to float for the official definition of SPEC Power, if the data with large fluctuation are data with the floating difference of more than 2%, and only data with stable pressure measurement, namely the data with the floating difference of less than 2%, are reserved. And averaging the stable data by a group of 30 seconds, wherein the stable voltage is generally measured for 4 minutes, so that 8 values are calculated, and the 8 values are subjected to geometric average calculation to obtain power consumption data with the final value of the current level. Thus, 14 data are recorded and calculated, and correspond to 14 levels in the SPEC Power test respectively. When the fact that the SPEC Power voltage measurement load is finished is monitored, Watts.avg data are obtained from a raw file generated by a result directory, the data are automatically generated by the SPEC Power, 14 data correspond to 14 levels respectively, and the data can generate a condition of-1 when voltage fluctuation is large. Comparing the 14 power consumption data obtained by calculation with 14 data of raw read in result one by one, and if the read in result is-1, directly writing the 14 values obtained by calculation into a raw file; if the difference between the two groups of data is within 2%, keeping raw unchanged; and if the level value exceeds 2%, writing the level value obtained by calculation into the level corresponding to the raw file for replacement. And logs all operations.
And receiving the report for checking after the running of the SPEC Power program is finished, and checking the log of the calibration device.
From the above, the SPEC Power consumption calibration device runs independently, does not affect the original SPEC Power program test, is convenient to use, and is suitable for the SPEC Power test of the universal server; the device can avoid the situation that Power consumption data is-1 caused by voltage fluctuation in the original SPEC Power program report, and reduce workload caused by errors; the apparatus may improve the accuracy of the Power consumption data in the SPEC Power program report.
It should be noted that, in the present application, there is no strict sequential execution order among the steps, and as long as a logical order is met, the steps may be executed simultaneously or according to a certain preset order, and fig. 1 to fig. 2 are only schematic manners, and do not represent only such an execution order.
The embodiment of the invention also provides a corresponding device for the test data generation method, so that the method has higher practicability. Wherein the means can be described separately from the functional module point of view and the hardware point of view. In the following, the test data generating apparatus provided by the embodiment of the present invention is introduced, and the test data generating apparatus described below and the test data generating method described above may be referred to correspondingly.
Based on the angle of the functional module, referring to fig. 3, fig. 4 is a structural diagram of a test data generating apparatus according to an embodiment of the present invention, in a specific implementation manner, the apparatus may include:
the data acquisition module 301 is configured to acquire Power consumption data of each working stage of the SPEC Power when it is monitored that the Power consumption test program runs in the SPEC Power running process.
And the standard data generation module 302 is configured to perform data preprocessing on the power consumption data to obtain standard power consumption data without abnormal data and without influence of data floating.
And the data reading module 303 is configured to read test data automatically generated by the SPEC Power when it is monitored that the SPEC Power test is ended.
And the test data generation module 304 is configured to calibrate the test data with the standard power consumption data to generate final test data.
Optionally, in some embodiments of this embodiment, the test data generating module 304 may be further configured to:
sequentially comparing the test data and the standard power consumption data of each working stage;
if the test data has an error value, replacing the test data of the corresponding working stage with the standard power consumption data of all the working stages to serve as final test data;
if the data difference between the test data of the target working stage and the corresponding standard power consumption data is not within the preset difference range, replacing the test data of the working stage with the standard power consumption data of the target working stage to serve as the final test data of the target working stage;
and if the data difference between the test data of the target working stage and the corresponding standard power consumption data is within the preset difference range, the test data of the target working stage is the final test data of the working stage.
As an optional implementation manner of this embodiment, the apparatus may further include a log generation module, for example, configured to generate a log including all operations in the final test data generation process.
Optionally, in other embodiments of this embodiment, the standard data generating module 302 may be further configured to:
removing data which are not within a preset floating allowable range in the power consumption data of the current working stage from the power consumption data of each working stage to obtain stable data;
dividing the stable data into a plurality of groups of subdata, and calculating the arithmetic mean value of each group of subdata;
and calculating to obtain standard power consumption data of the current working stage according to the arithmetic mean value of each group of sub data.
As an optional implementation manner of this embodiment, the standard data generating module 302 may further be configured to: and calculating the geometric mean of the arithmetic mean of each group of sub-data, and taking the geometric mean as the standard power consumption data of the current working stage.
The functions of the functional modules of the test data generation apparatus according to the embodiment of the present invention may be specifically implemented according to the method in the foregoing method embodiment, and the specific implementation process may refer to the description related to the foregoing method embodiment, which is not described herein again.
Therefore, the embodiment of the invention can improve the accuracy of the Power consumption data acquired in the SPEC Power test process and effectively improve the energy consumption ratio test performance of the server.
The above-mentioned test data generating apparatus is described from the perspective of a functional module, and further, the present application also provides an electronic device described from the perspective of hardware. Fig. 4 is a schematic structural diagram of an electronic device according to an embodiment of the present application. As shown in fig. 4, the electronic device includes a memory 40 for storing a computer program; a processor 41 for implementing the steps of the test data generation method as mentioned in any of the above embodiments when executing the computer program.
Processor 41 may include one or more processing cores, such as a 4-core processor, an 8-core processor, and so forth. The processor 41 may be implemented in at least one hardware form of a DSP (Digital Signal Processing), an FPGA (Field-Programmable Gate Array), and a PLA (Programmable Logic Array). The processor 41 may also include a main processor and a coprocessor, where the main processor is a processor for Processing data in an awake state, and is also called a Central Processing Unit (CPU); a coprocessor is a low power processor for processing data in a standby state. In some embodiments, the processor 41 may be integrated with a GPU (Graphics Processing Unit), which is responsible for rendering and drawing the content required to be displayed on the display screen. In some embodiments, processor 41 may further include an AI (Artificial Intelligence) processor for processing computational operations related to machine learning.
Memory 40 may include one or more computer-readable storage media, which may be non-transitory. Memory 40 may also include high speed random access memory, as well as non-volatile memory, such as one or more magnetic disk storage devices, flash memory storage devices. In this embodiment, the memory 40 is at least used for storing the following computer program 401, wherein after being loaded and executed by the processor 41, the computer program can implement the relevant steps of the test data generation method disclosed in any of the foregoing embodiments. In addition, the resources stored in the memory 40 may also include an operating system 402, data 403, and the like, and the storage manner may be a transient storage or a permanent storage. Operating system 402 may include, among other things, Windows, Unix, Linux, and the like. The data 403 may include, but is not limited to, data corresponding to the test data generation result, and the like.
In some embodiments, the electronic device may further include a display 42, an input/output interface 43, a communication interface 44, alternatively referred to as a network interface, a power supply 45, and a communication bus 46. The display 42 and the input/output interface 43, such as a Keyboard (Keyboard), belong to a user interface, and the optional user interface may also include a standard wired interface, a wireless interface, and the like. Alternatively, in some embodiments, the display may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, an OLED (Organic Light-Emitting Diode) touch device, or the like. The display, which may also be referred to as a display screen or display unit, as appropriate, is used for displaying information processed in the electronic device and for displaying a visualized user interface. The communication interface 44 may optionally include a wired interface and/or a wireless interface, such as a WI-FI interface, a bluetooth interface, etc., typically used to establish a communication connection between an electronic device and other electronic devices. The communication bus 46 may be a Peripheral Component Interconnect (PCI) bus, an Extended Industry Standard Architecture (EISA) bus, or the like. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one thick line is shown in FIG. 4, but this does not indicate only one bus or one type of bus.
Those skilled in the art will appreciate that the configuration shown in fig. 4 is not intended to be limiting of the electronic device and may include more or fewer components than those shown, such as sensors 47, for example, to perform various functions.
The functions of the functional modules of the electronic device according to the embodiments of the present invention may be specifically implemented according to the method in the above method embodiments, and the specific implementation process may refer to the description related to the above method embodiments, which is not described herein again.
Therefore, the embodiment of the invention can improve the accuracy of the Power consumption data acquired in the SPEC Power test process and effectively improve the energy consumption ratio test performance of the server.
It is to be understood that, if the test data generating method in the above embodiments is implemented in the form of a software functional unit and sold or used as a stand-alone product, it may be stored in a computer readable storage medium. Based on such understanding, the technical solutions of the present application may be substantially or partially implemented in the form of a software product, which is stored in a storage medium and executes all or part of the steps of the methods of the embodiments of the present application, or all or part of the technical solutions. And the aforementioned storage medium includes: a U disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), an electrically erasable programmable ROM, a register, a hard disk, a removable magnetic disk, a CD-ROM, a magnetic or optical disk, and other various media capable of storing program codes.
Based on this, the embodiment of the present invention further provides a readable storage medium, which stores a computer program, and the computer program is executed by a processor, and the steps of the test data generation method according to any one of the above embodiments are provided.
The functions of the functional modules of the readable storage medium according to the embodiment of the present invention may be specifically implemented according to the method in the foregoing method embodiment, and the specific implementation process may refer to the description related to the foregoing method embodiment, which is not described herein again.
The embodiments are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same or similar parts among the embodiments are referred to each other. For hardware including devices and electronic equipment disclosed by the embodiment, the description is relatively simple because the hardware includes the devices and the electronic equipment correspond to the method disclosed by the embodiment, and the relevant points can be obtained by referring to the description of the method.
Those of skill would further appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, computer software, or combinations of both, and that the various illustrative components and steps have been described above generally in terms of their functionality in order to clearly illustrate this interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
The test data generation method, the test data generation device, the electronic device and the readable storage medium provided by the application are described in detail above. The principles and embodiments of the present invention are explained herein using specific examples, which are presented only to assist in understanding the method and its core concepts. It should be noted that, for those skilled in the art, it is possible to make various improvements and modifications to the present invention without departing from the principle of the present invention, and those improvements and modifications also fall within the scope of the claims of the present application.

Claims (10)

1. A method for generating test data, comprising:
in the operating process of the SPEC Power, when the operation of a Power consumption test program is monitored, acquiring Power consumption data of each working stage of the SPEC Power;
performing data preprocessing on the power consumption data to obtain abnormal data and standard power consumption data which are not influenced by data floating;
when the SPEC Power test is monitored to be finished, reading test data automatically generated by the SPEC Power;
and calibrating the test data by using the standard power consumption data to generate final test data.
2. The method of claim 1, wherein calibrating the test data using the standard power consumption data comprises:
sequentially comparing the test data and the standard power consumption data of each working stage;
if the test data has an error value, replacing the test data of the corresponding working stage with the standard power consumption data of all the working stages to serve as the final test data;
if the data difference between the test data of the target working stage and the corresponding standard power consumption data is not within the preset difference range, replacing the test data of the working stage with the standard power consumption data of the target working stage to serve as the final test data of the target working stage;
and if the data difference between the test data of the target working stage and the corresponding standard power consumption data is within a preset difference range, the test data of the target working stage is the final test data of the working stage.
3. The method of claim 2, wherein after calibrating the test data with the standard power consumption data to generate final test data, the method further comprises:
and generating a log containing all operations in the final test data generation process.
4. The test data generation method according to any one of claims 1 to 3, wherein the performing data preprocessing on the power consumption data includes:
removing data which are not within a preset floating allowable range in the power consumption data of the current working stage from the power consumption data of each working stage to obtain stable data;
dividing the stable data into a plurality of groups of subdata, and calculating the arithmetic mean value of each group of subdata;
and calculating to obtain the standard power consumption data of the current working stage according to the arithmetic mean value of each group of sub data.
5. The method according to claim 4, wherein the calculating the standard power consumption data of the current working stage according to the arithmetic mean of each group of sub-data includes:
and calculating the geometric mean of the arithmetic mean of each group of sub-data, and taking the geometric mean as the standard power consumption data of the current working stage.
6. A test data generation apparatus, comprising:
the data acquisition module is used for acquiring Power consumption data of each working stage of the SPEC Power when monitoring that a Power consumption test program runs in the running process of the SPEC Power;
the standard data generation module is used for carrying out data preprocessing on the power consumption data to obtain abnormal data and standard power consumption data which are not influenced by data floating;
the data reading module is used for reading test data automatically generated by the SPEC Power when the fact that the SPEC Power test is finished is monitored;
and the test data generation module is used for calibrating the test data by using the standard power consumption data to generate final test data.
7. The test data generation apparatus of claim 6, wherein the test data generation module is further configured to:
sequentially comparing the test data and the standard power consumption data of each working stage;
if the test data has an error value, replacing the test data of the corresponding working stage with the standard power consumption data of all the working stages to serve as the final test data;
if the data difference between the test data of the target working stage and the corresponding standard power consumption data is not within the preset difference range, replacing the test data of the working stage with the standard power consumption data of the target working stage to serve as the final test data of the target working stage;
and if the data difference between the test data of the target working stage and the corresponding standard power consumption data is within a preset difference range, the test data of the target working stage is the final test data of the working stage.
8. The test data generation apparatus of claim 6 or 7, wherein the standard data generation module is further configured to:
removing data which are not within a preset floating allowable range in the power consumption data of the current working stage from the power consumption data of each working stage to obtain stable data;
dividing the stable data into a plurality of groups of subdata, and calculating the arithmetic mean value of each group of subdata;
and calculating to obtain the standard power consumption data of the current working stage according to the arithmetic mean value of each group of sub data.
9. An electronic device comprising a processor for implementing the steps of the test data generation method of any one of claims 1 to 5 when executing a computer program stored in a memory.
10. A readable storage medium, having stored thereon a test data generating computer program which, when executed by a processor, carries out the steps of the test data generating method according to any one of claims 1 to 5.
CN202110720440.4A 2021-06-28 2021-06-28 Test data generation method and device, electronic equipment and readable storage medium Active CN113608953B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110720440.4A CN113608953B (en) 2021-06-28 2021-06-28 Test data generation method and device, electronic equipment and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110720440.4A CN113608953B (en) 2021-06-28 2021-06-28 Test data generation method and device, electronic equipment and readable storage medium

Publications (2)

Publication Number Publication Date
CN113608953A true CN113608953A (en) 2021-11-05
CN113608953B CN113608953B (en) 2023-06-20

Family

ID=78303829

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110720440.4A Active CN113608953B (en) 2021-06-28 2021-06-28 Test data generation method and device, electronic equipment and readable storage medium

Country Status (1)

Country Link
CN (1) CN113608953B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116302728A (en) * 2022-11-04 2023-06-23 中国标准化研究院 Server energy efficiency test system

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109933770A (en) * 2019-03-20 2019-06-25 浪潮商用机器有限公司 A kind of test report generation method, system and electronic equipment and storage medium
CN110413475A (en) * 2019-06-19 2019-11-05 苏州浪潮智能科技有限公司 A kind of method and apparatus of correction server power consumption measurements
CN112631865A (en) * 2020-12-24 2021-04-09 苏州浪潮智能科技有限公司 Server power consumption testing method, device, control system and medium

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109933770A (en) * 2019-03-20 2019-06-25 浪潮商用机器有限公司 A kind of test report generation method, system and electronic equipment and storage medium
CN110413475A (en) * 2019-06-19 2019-11-05 苏州浪潮智能科技有限公司 A kind of method and apparatus of correction server power consumption measurements
CN112631865A (en) * 2020-12-24 2021-04-09 苏州浪潮智能科技有限公司 Server power consumption testing method, device, control system and medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116302728A (en) * 2022-11-04 2023-06-23 中国标准化研究院 Server energy efficiency test system

Also Published As

Publication number Publication date
CN113608953B (en) 2023-06-20

Similar Documents

Publication Publication Date Title
US8271961B1 (en) Method and system for predictive software system quality measurement
KR20190025474A (en) Apparatus and Method for Predicting Plant Data
CN110532174B (en) Method, device, computer equipment and storage medium for calculating increment code coverage rate
CN111522725A (en) SSD performance automatic evaluation method, device, equipment and medium
CN111813632A (en) CPU power consumption test method, test device, test equipment and storage medium
CN116257923A (en) Bridge health monitoring method, bridge health monitoring device, computer equipment and storage medium
CN113608953A (en) Test data generation method and device, electronic equipment and readable storage medium
CN110441727A (en) A kind of pair of electric energy performance school instrument carries out the method and device of state evaluation
CN116609642B (en) Chip test error compensation method and device, electronic equipment and storage medium
CN112540290A (en) Test method and device for clock frequency calibration, storage medium and terminal
CN112578270A (en) Test method and device for automatic calibration of reference voltage, storage medium and terminal
CN108710751B (en) Method and device for identifying local connection looseness of power transmission tower
JP2009163636A (en) Consistency checking method, apparatus, and program
CN110967615B (en) Circuit board fault diagnosis device and method
CN114136530A (en) Method and device for determining air pressure difference between inlet and outlet of converter
CN111176931A (en) Operation monitoring method, operation monitoring device, server and storage medium
CN113030821A (en) Electric quantity calibration method and device
CN112241343A (en) Slow disk detection method and device, electronic equipment and readable storage medium
Agarwal Markovian software reliability model for two types of failures with imperfect debugging rate and generation of errors
CN112161742B (en) Power sensor detection method, device, equipment and storage medium
CN117112398B (en) Incremental code coverage rate detection method and device, electronic equipment and storage medium
CN117896301B (en) Baud rate analysis method, device, electronic equipment and storage medium
CN112260900B (en) Method, device and equipment for measuring energy consumption of communication equipment and storage medium
CN117129236B (en) Remote control-based motor vehicle equipment calibration detection method and system
EP4425352A1 (en) Method and sensing system for determining an overall quality indicator qox for a sensor based measurement

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant