CN109828890A - A kind of test data method for sorting, device, equipment and the storage medium of hard disk - Google Patents
A kind of test data method for sorting, device, equipment and the storage medium of hard disk Download PDFInfo
- Publication number
- CN109828890A CN109828890A CN201910155943.4A CN201910155943A CN109828890A CN 109828890 A CN109828890 A CN 109828890A CN 201910155943 A CN201910155943 A CN 201910155943A CN 109828890 A CN109828890 A CN 109828890A
- Authority
- CN
- China
- Prior art keywords
- data
- test
- test data
- hard disk
- template file
- 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.)
- Pending
Links
- 238000012360 testing method Methods 0.000 title claims abstract description 421
- 238000000034 method Methods 0.000 title claims abstract description 58
- 230000002123 temporal effect Effects 0.000 claims abstract description 31
- 238000011056 performance test Methods 0.000 claims description 12
- 238000004590 computer program Methods 0.000 claims description 11
- 238000006243 chemical reaction Methods 0.000 claims description 7
- 238000005259 measurement Methods 0.000 claims description 4
- 238000002360 preparation method Methods 0.000 claims description 4
- 230000009286 beneficial effect Effects 0.000 abstract description 7
- 230000009467 reduction Effects 0.000 abstract description 3
- 238000004458 analytical method Methods 0.000 description 5
- 238000005457 optimization Methods 0.000 description 5
- 238000005516 engineering process Methods 0.000 description 4
- 230000006870 function Effects 0.000 description 3
- 230000001174 ascending effect Effects 0.000 description 2
- 230000006872 improvement Effects 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 241001269238 Data Species 0.000 description 1
- 238000004422 calculation algorithm Methods 0.000 description 1
- 238000004364 calculation method Methods 0.000 description 1
- 238000012512 characterization method Methods 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 238000010586 diagram Methods 0.000 description 1
- 238000011156 evaluation Methods 0.000 description 1
- 239000000203 mixture Substances 0.000 description 1
- 230000008569 process Effects 0.000 description 1
- 238000012545 processing Methods 0.000 description 1
- 230000000750 progressive effect Effects 0.000 description 1
Abstract
This application discloses a kind of test data method for sorting of hard disk, comprising: using default script according to target hard disk length of testing speech and test frequency generate include each testing time point data template file;Target hard disk is tested for the property respectively using the test thread of preset quantity, obtains test data file packet corresponding with each test thread;According to the corresponding relationship of the testing time point in the temporal information of the test data in each test data file packet and data template file, each test data is correspondingly arranged in data template file;The corresponding test data of testing time point same in data template file is summarized;It opposite can improve and arrange efficiency and the cost that saves manpower and time;Error rate in relative reduction data-handling procedure, and then improve accuracy when analyzing hard disk performance.Disclosed herein as well is test data collating unit, equipment and the computer readable storage mediums of a kind of hard disk, all have above-mentioned beneficial effect.
Description
Technical field
The present invention relates to data processing field, in particular to the test data method for sorting of a kind of hard disk, device, equipment and
Computer readable storage medium.
Background technique
In recent years, as the fast development of computer technology is universal, performance test of the people to computer equipment such as hard disk
Also increasingly pay attention to.Currently, a kind of common disk read-write performance test methods are by FIO tool come the IOPS of testing hard disk
(Input/Output Operations Per Second, read-write number per second), and generally by the way that multiple tests are arranged
Thread, each test thread are written and read test to target hard disk respectively all in accordance with testing time point, and each test data stores respectively
In test data file packet corresponding with test thread.In preset length of testing speech, each testing time point be will acquire
Multiple groups test data, in addition, during hard disk test, it is understood that there may be test thread interrupt is led currently without reading and writing data
The case where causing not test data corresponding with testing time point.That is, will all be produced to the performance test of hard disk every time
Raw a large amount of and random test data, so that technical staff needs before the performance of analysis hard disk to the test number got
According to being arranged.
In the prior art to the method for sorting of test data generally by technical staff manually by test data file
Test data in packet is classified according to different test threads and corresponding testing time point, then calculates each survey
Try the summation of time point corresponding test data.But this method by manual hand manipulation, operating process is cumbersome, needs
Consume a large amount of manpower and time;In addition, technical staff is whole manually since the data volume of each test data is big and random
Hand mistake is easy to happen during reason, the test data sorted out so as to cause later use carries out appearance when hard disk performance analysis
Mistake.
Therefore, how to provide a kind of method of test data for arranging hard disk to improve arrangement efficiency, save manpower and when
Between cost, and reduce the mistake in data-handling procedure, be a technical problem that technical personnel in the field need to solve at present.
Summary of the invention
In view of this, can be improved arrangement the purpose of the present invention is to provide a kind of test data method for sorting of hard disk
The efficiency of the test data of hard disk, save manpower and time cost, and reduces the mistake in data-handling procedure;Of the invention is another
One purpose is to provide test data collating unit, equipment and the computer readable storage medium of a kind of hard disk, and all having above-mentioned has
Beneficial effect.
In order to solve the above technical problems, the present invention provides a kind of test data method for sorting of hard disk, comprising:
Using default script according to target hard disk length of testing speech and test frequency generation include each testing time point
Data template file;
The target hard disk is tested for the property respectively using the test thread of preset quantity, is obtained and each test
The corresponding test data file packet of thread;
According in the temporal information of the test data in each test data file packet and the data template file
Each test data is correspondingly arranged in the data template file by the corresponding relationship of the testing time point;
The corresponding test data of testing time point same in the data template file is summarized.
Preferably, the temporal information according to the test data in each test data file packet and the data mould
Each test data is correspondingly arranged in the data template file by the corresponding relationship of the testing time point in plate file
In specifically include:
The test data in the same test data file packet is successively obtained sequentially in time;
The temporal information for judging the test data obtained and the position to be written in the data template file
Whether corresponding testing time point is identical;
If so, the test data that will acquire is set to the position to be written, and by next testing time point pair
The writing position answered is set as the position to be written;
If it is not, then centering zero in the position to be written, and the corresponding writing position of next testing time point is arranged
For the position to be written.
Preferably, the temporal information according to the test data in each test data file packet and the number
According to the corresponding relationship of the testing time point in template file, each test data is correspondingly arranged in the data template file
In specifically include:
It is the second by the Conversion of measurement unit of the temporal information of each test data in each test data file packet;
According to the institute in the temporal information of each test data after conversion unit and the data template file
Each test data is correspondingly arranged in the data template file by the corresponding relationship for stating testing time point.
Preferably, it is described according to the preset length of testing speech to target hard disk and test frequency generation include each test when
Between the data template file put specifically include:
Obtain the test item to the target hard disk;
Being generated respectively corresponding according to length of testing speech corresponding with each test item and test frequency includes each survey
Try the data template file at time point.
Preferably, the corresponding test data of testing time point same in the data template file is summarized it described
Afterwards, further comprise:
For the test data in the data template file and summarize the corresponding identification information of data addition.
Preferably, the corresponding test data of testing time point same in the data template file is summarized it described
Afterwards, further comprise:
Summarize data described in form displaying using statistical graph.
In order to solve the above technical problems, the present invention also provides a kind of test data collating units of hard disk, comprising:
Data template file generating module, for according to the length of testing speech to target hard disk and testing frequency using default script
Rate generation includes the data template file of each testing time point;
Hard disk performance test module carries out performance to the target hard disk respectively for the test thread using preset quantity
Test obtains test data file packet corresponding with each test thread;
Test data setup module, for according to the temporal information of the test data in each test data file packet with
Each test data is correspondingly arranged in the number by the corresponding relationship of the testing time point in the data template file
According in template file;
Test data summarizing module is used for the corresponding test data of testing time point same in the data template file
Summarize.
In order to solve the above technical problems, the present invention also provides a kind of test data collators of hard disk, comprising:
Memory, for storing computer program;
Processor realizes the test data method for sorting of any of the above-described kind of hard disk when for executing the computer program
Step.
In order to solve the above technical problems, the present invention also provides a kind of computer readable storage medium, it is described computer-readable
Computer program is stored on storage medium, the computer program realizes the survey of any of the above-described kind of hard disk when being executed by processor
The step of trying data preparation method.
The present invention provides a kind of test data method for sorting of hard disk, compared to the prior art in by technical staff it is manual
The method for arranging the test data of target hard disk, this method realize the test of the performance test to target hard disk by presetting script
The arrangement of data, therefore opposite can improve and arrange efficiency and the cost that saves manpower and time;Also, in compared to the prior art
The case where be easy to causeing hand to miss by manual operation, this method, being capable of relative reduction data by script execution corresponding step
Error rate during arrangement, and then improve accuracy when analyzing hard disk performance.
In order to solve the above technical problems, the present invention also provides test data collating unit, equipment and the meters of a kind of hard disk
Calculation machine readable storage medium storing program for executing, all has above-mentioned beneficial effect.
Detailed description of the invention
It in order to illustrate the embodiments of the present invention more clearly or the technical solution of the prior art, below will be to embodiment or existing
Attached drawing needed in technical description is briefly described, it should be apparent that, the accompanying drawings in the following description is only this hair
Bright some embodiments for those of ordinary skill in the art without creative efforts, can be with root
Other attached drawings are obtained according to the attached drawing of offer.
Fig. 1 is a kind of flow chart of the test data method for sorting of hard disk provided in an embodiment of the present invention;
Fig. 2 is a kind of structure chart of the test data collating unit of hard disk provided in an embodiment of the present invention;
Fig. 3 is a kind of structure chart of the test data collator of hard disk provided in an embodiment of the present invention.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete
Site preparation description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on
Embodiment in the present invention, it is obtained by those of ordinary skill in the art without making creative efforts every other
Embodiment shall fall within the protection scope of the present invention.
The core of the embodiment of the present invention is to provide a kind of test data method for sorting of hard disk, can be improved and arranges hard disk
The efficiency of test data, save manpower and time cost, and reduces the mistake in data-handling procedure;Another core of the invention
It is to provide test data collating unit, equipment and the computer readable storage medium of a kind of hard disk, all has above-mentioned beneficial effect.
It is right with reference to the accompanying drawings and detailed description in order to make those skilled in the art more fully understand the present invention program
The present invention is described in further detail.
Fig. 1 is a kind of flow chart of the test data method for sorting of hard disk provided in an embodiment of the present invention.As shown in Figure 1,
A kind of test data method for sorting of hard disk includes:
S10: using default script according to target hard disk length of testing speech and test frequency generation include each test when
Between the data template file put.
The purpose of this step is the data that generation includes each testing time point being tested for the property to target hard disk
Template file.Specifically, testing time point can be calculated by the preset length of testing speech to target hard disk and test frequency
It arrives.In actual operation, adaptable length of testing speech and test can be set according to the different testing requirements to different hard disks
Frequency.For example, length of testing speech can be 7200s or 3600s etc.;Test frequency can be it is per second test it is primary or every two seconds survey
It is inferior to try one;A length of 7200s when tested, and when test frequency is 1s/ time, then 7200 testing time points are shared, each test
Time point is specially 1s, 2s, 3s ... 7199s, 7200s.
It include each testing time point in data template file, each testing time point is according to ascending order or descending
Mode laterally or longitudinally arranges, and position corresponding with each testing time point is the position for test data to be written.It needs to illustrate
, due to being to be tested for the property using multiple test threads to target hard disk, each thread of testing is in the corresponding testing time
Point will acquire corresponding test data, therefore a testing time point in data template file will corresponding multiple write-in positions
It sets.Such as in a kind of specific implementation, in data template file, each testing time presses sequence from small to large and successively longitudinally arranges
Column, transverse direction table corresponding with each testing time point is the position for being used to be written each corresponding test data.
S20: being respectively tested for the property target hard disk using the test thread of preset quantity, obtains and each test thread
Corresponding test data file packet.
Specifically, test thread namely the thread being tested for the property to target hard disk, a test thread will be in each survey
Examination time point tests target hard disk, obtains when time corresponding test data.It is pressed in length of testing speech by testing thread
It is tested for the property according to each testing time point, multiple test datas will be obtained, and the corresponding test data of same test thread will
It is stored in the same test data file packet namely the quantity of test data file packet is equal to the quantity of test thread, consider
To in the performance test may be without carrying out reading and writing data, therefore the quantity one of the test data in test data file packet
As be less than or equal to testing time point quantity.
The present embodiment without limitation, carries out the concrete type for testing thread generally by FIO tool to target hard disk
IOPS performance test.In addition, the present embodiment to the preset quantity of test thread also without limitation, the present embodiment is preferably set up 6
A test thread reduces number of threads on the basis of multiple test threads can be utilized to widen the difference of test data as far as possible,
It avoids excessively influencing the overall performance of computer due to test number of threads.
S30: according to the test in the temporal information of the test data in each test data file packet and data template file
Each test data is correspondingly arranged in data template file by the corresponding relationship at time point.
The purpose of this step is pair being set to the test data in test data file packet in data template file
Answer position.Specifically, due to including each testing time tested target hard disk in pre-generated data template file
Point, therefore the temporal information of each test data in each test file data packet and the time point in data template file are mutual
It is corresponding, therefore according to the corresponding relationship of the testing time point in the temporal information of each test data and data template file, it will
Each test data is correspondingly arranged in data template file.
S40: the corresponding test data of testing time point same in data template file is summarized.
Specifically, after each test data is correspondingly arranged in data template file, by the p-wire of preset quantity
The corresponding test data of same testing time point in journey is summarized respectively.For example, it is assumed that it is provided with 6 test threads altogether,
7200 testing time points then summarize the corresponding test data of testing time point same in 6 test threads, as one
Group summarizes data, and is obtained 7200 groups and summarizes data, consequently facilitating the data that summarize that subsequent basis is respectively calculated analyze mesh
Mark the performance of hard disk.
The embodiment of the present invention provides a kind of test data method for sorting of hard disk, compared to the prior art in pass through technology people
The method of the test data of member's Manual arranging target hard disk, this method is by presetting performance test of the script realization to target hard disk
Test data arrangement, therefore opposite can improve and arrange efficiency and the cost that saves manpower and time;Also, compared to existing
The case where be easy to causeing hand to miss by manual operation in technology, this method, being capable of opposite drops by script execution corresponding step
Error rate in low data-handling procedure, and then improve accuracy when analyzing hard disk performance.
On the basis of the above embodiments, the present embodiment has made further instruction and optimization to technical solution, specifically,
It is corresponding with the testing time point in data template file according to the temporal information of the test data in each test data file packet
Each test data is correspondingly arranged in data template file and specifically includes by relationship:
The test data in same test data file packet is successively obtained sequentially in time;
When judging corresponding with the position to be written in the data template file test of temporal information of the test data obtained
Between put it is whether identical;
If so, the test data that will acquire is set to position to be written, and by the corresponding write-in of next testing time point
Position is set as position to be written;
If it is not, then center zero in position to be written, and by the corresponding writing position of next testing time point be set as to
Writing position.
Specifically, test number is successively obtained according to time ascending order or descending first in same test data file packet
According to as test data to be written;Then judge the temporal information and data template of the test data to be written obtained
Whether the corresponding testing time point in position to be written in file is identical;If they are the same, then the test data that will acquire be set to
Writing position, and position to be written is set by the corresponding writing position of next testing time point;If not identical, then it represents that test
Interruption or the testing time point occur for thread, and there is no reading and writing event, therefore test not corresponding with the testing time point
Data, therefore zero is centered in position to be written, and set position to be written for the corresponding writing position of next testing time point
It sets, namely continues to execute the operation being set to the test data in test data file packet in data template file.
It should be noted that in specific implementation, can be successively to the test data in each test data file packet into
Row operation, is also possible to simultaneously operate multiple test data file packets, to shorten the test in each data file packet
Data setting and the time in data template file, the present embodiment do not limit this.
It should be noted that in other embodiments, being also possible to by arbitrarily successively obtaining in test data file packet
Test data test data to be written, then searched in data template file and the test data to be written that obtains
The corresponding testing time point of temporal information, so that it is determined that corresponding position to be written out;The test to be written that will acquire again
The position to be written is written in data.Also, the test data in test data file packet is being all set in data template file
In after, if there are vacancies for data template file, filled in by way of zero padding, to complete test data file packet
In test data imported into the purpose in data template file.
As it can be seen that a kind of test data method for sorting of hard disk provided in this embodiment, can more easily realize each survey
Test data in examination data file packet is correspondingly arranged in the purpose in data template file.
On the basis of the above embodiments, the present embodiment has made further instruction and optimization to technical solution, specifically,
It is corresponding with the testing time point in data template file according to the temporal information of the test data in each test data file packet
Each test data is correspondingly arranged in data template file and specifically includes by relationship:
It is the second by the Conversion of measurement unit of the temporal information of each test data in each test data file packet;
According to pair of the testing time point in the temporal information of each test data after conversion unit and data template file
It should be related to, each test data is correspondingly arranged in data template file.
It should be noted that in actual operation, after being tested for the property using each test thread to target hard disk
To test data log in, the unit of the temporal information of each test data is usually millisecond (ms).It is corresponding, due to when
Between information precision it is higher, therefore each test thread will be inevitably present time error in the performance test.For example,
When equally carrying out the 10th performance test, the temporal information for the test data that different test threads obtains be may respectively be
100008ms and 100009ms;And each testing time point in data template file is calculated according to length of testing speech and test frequency
Out, so, it when test data is set in data template file according to the temporal information of each test data, deposits
It is being difficult to the case where obtaining the temporal information corresponding testing time point completely with test data.Therefore, the present embodiment passes through elder generation
The unit of each testing time is converted into the second (s) by millisecond (ms), reduces the precision of the temporal information of each test data, such as
100008ms and 100009ms correspond to 100s, so that each test data more accurately corresponds to each testing time point, in turn
Improve the accuracy test data in each test data file packet being correspondingly arranged in data template file.
On the basis of the above embodiments, the present embodiment has made further instruction and optimization to technical solution, specifically,
It include the data template file of each testing time point according to the preset length of testing speech to target hard disk and test frequency generation
It specifically includes:
Obtain the test item to target hard disk;
According to length of testing speech corresponding with each test item and test frequency generate respectively it is corresponding include each test when
Between the data template file put.
It is understood that when being tested for the property to target hard disk, it is understood that there may be need the more of test target hard disk
The case where performance of a aspect.Therefore, it is necessary first to obtain the test item to target hard disk, such as the test when target hard disk
When project includes randR (random read, random write) and randW (random write, random write), according to different surveys
The corresponding length of testing speech of examination project and test frequency generate respectively it is corresponding include each testing time point data template file.
The test item of target hard disk is tested for the property respectively in addition, presetting different types of test thread, is respectively obtained
Corresponding test data file packet;Then each test data in test data file packet is set to and test item and each
In the corresponding position to be written of testing time point.
Different data template files is arranged by the test item for target hard disk for the present embodiment, thus by different tests
The corresponding test data of project arranges in different data template files, checks convenient for subsequent, and subsequent basis of being more convenient for
The test data sorted out carries out performance evaluation to target hard disk.
On the basis of the above embodiments, the present embodiment has made further instruction and optimization to technical solution, specifically,
After summarizing the corresponding test data of testing time point same in data template file, further comprise:
For the test data in data template file and summarize the corresponding identification information of data addition.
Specifically, due to the test data in each test data file packet be according to laterally or longitudinally rule with it is each
Testing time point is correspondingly arranged in data template file, the test number of every a line or each column in data template file
What it is according to expression is data in same test data file packet, therefore, in order to enable technical staff can more intuitively get
It is each to test the corresponding test data of thread, the corresponding test data of testing time point same in data template file is being summarized it
Afterwards, the name of corresponding test thread or test data file packet is referred to as to the column name of the row title or each column of each row
Claim, to identify the corresponding test data of variant test thread;In addition, being arranged before the row or column that characterization summarizes data corresponding
Identification information.
As it can be seen that the present embodiment by further for the test data in data template file and summarize data add it is corresponding
Identification information allows a technician to more intuitively understand each test thread and summarizes the data cases of data, further
Promote usage experience.
On the basis of the above embodiments, the present embodiment has made further instruction and optimization to technical solution, specifically,
After summarizing the corresponding test data of testing time point same in data template file, further comprise:
Summarize data using the form displaying of statistical graph.
It should be noted that in the present embodiment, further handled using datagraphic tool to respectively summarizing data,
Generate corresponding statistical graph.The present embodiment without limitation, such as can be column diagram, cake to the concrete form of statistical graph
Figure etc..The present embodiment is shown by way of statistical graph summarizes data, can more intuitively understand each remittance convenient for technical staff
The correlation of total data improves the efficiency of the performance of analysis target hard disk.
In order to make those skilled in the art better understand the technical solutions in the application, below with reference to practical application field
Scape technical solutions in the embodiments of the present application is described in detail.In this example, it is assumed that test number of threads is 6, it is right
The length of testing speech of hard disk is 7200s, and test frequency is 1s/ times.
Specifically, it is possible, firstly, to according to following procedure code building data template file:
It is then possible to the Conversion of measurement unit of test data is realized using following procedure code, the time of each test data is single
Position is converted to the second by millisecond:
The test data in each test data file packet is set to corresponding data template text according to following procedure code
In part:
The corresponding test data of the test thread of same testing time point is converged in addition, being realized according to following procedure code
It is total:
Finally, for the test data in data template file and summarizing the corresponding mark of data addition by following procedure code
Know information:
Through the above steps, a kind of data template file for being provided with test data as shown in Table 1 will be obtained.
1 data template file of table
job1 | job2 | job3 | job4 | job5 | job6 | Sum | |
1s | 82871 | 61540 | 82860 | 82861 | 68966 | 76200 | 455298 |
2s | 119662 | 99411 | 119676 | 119672 | 104880 | 119663 | 682964 |
3s | 118685 | 103086 | 118656 | 118667 | 104380 | 118693 | 682167 |
4s | 117722 | 109860 | 117742 | 117732 | 101543 | 117709 | 682308 |
…… | …… | …… | …… | …… | …… | …… | …… |
7199s | 119669 | 116450 | 125324 | 74017 | 125273 | 122762 | 683495 |
7200s | 122633 | 95586 | 128848 | 86777 | 128872 | 119898 | 682614 |
As can be seen from Table 1, in the present embodiment, each testing time point 1s~7200s is longitudinally arranged according to incremental mode
Column, each column data corresponding with each testing time point respectively indicate the test data in same test data file packet, and
The present embodiment identifies the corresponding test data of each thread using job1~job6 respectively, and " Sum " mark is utilized to summarize data.
As it can be seen that a kind of test data method for sorting of hard disk provided in this embodiment, opposite can improve and arrange efficiency simultaneously
Save manpower and time cost;Can error rate in relative reduction data-handling procedure, and then when improving analysis hard disk performance
Accuracy;And it is clear to enable to test data to be more clear, and reduced data is checked and utilized convenient for technical staff
Hard disk performance analysis is carried out, the working efficiency of technical staff is further increased.
Detailed retouch has been carried out for a kind of embodiment of the test data method for sorting of hard disk provided by the invention above
It states, the present invention also provides a kind of device corresponding with this method, equipment and computer readable storage mediums, due to device, set
Standby and computer readable storage medium part embodiment and the embodiment of method part mutually correlate, thus device, equipment and
The embodiment of computer readable storage medium part refers to the description of the embodiment of method part, wouldn't repeat here.
Fig. 2 is a kind of structure chart of the test data collating unit of hard disk provided in an embodiment of the present invention, as shown in Fig. 2,
A kind of test data collating unit of hard disk includes:
Data template file generating module 21, for using default script according to target hard disk length of testing speech and test
Frequency generation includes the data template file of each testing time point;
Hard disk performance test module 22 carries out performance survey to target hard disk respectively for the test thread using preset quantity
Examination, obtains test data file packet corresponding with each test thread;
Test data setup module 23, for the temporal information and number according to the test data in each test data file packet
According to the corresponding relationship of the testing time point in template file, each test data is correspondingly arranged in data template file;
Test data summarizing module 24, for converging the corresponding test data of testing time point same in data template file
Always.
The test data collating unit of hard disk provided in an embodiment of the present invention, the test data arrangement side with above-mentioned hard disk
The beneficial effect of method.
Fig. 3 is a kind of structure chart of the test data collator of hard disk provided in an embodiment of the present invention, as shown in figure 3,
A kind of test data collator of hard disk includes:
Memory 31, for storing computer program;
Processor 32, when for executing computer program the step of the realization such as test data method for sorting of above-mentioned hard disk.
The test data collator of hard disk provided in an embodiment of the present invention, the test data arrangement side with above-mentioned hard disk
The beneficial effect of method.
In order to solve the above technical problems, the present invention also provides a kind of computer readable storage medium, computer-readable storage
It is stored with computer program on medium, the test data arrangement side such as above-mentioned hard disk is realized when computer program is executed by processor
The step of method.
Computer readable storage medium provided in an embodiment of the present invention, the test data method for sorting with above-mentioned hard disk
Beneficial effect.
Above to the test data method for sorting of hard disk provided by the present invention, device, equipment and computer-readable storage
Medium is described in detail.Principle and implementation of the present invention are described for specific embodiment used herein,
The above description of the embodiment is only used to help understand the method for the present invention and its core ideas.It should be pointed out that for this technology
For the those of ordinary skill in field, without departing from the principle of the present invention, several improvement can also be carried out to the present invention
And modification, these improvements and modifications also fall within the scope of protection of the claims of the present invention.
Each embodiment is described in a progressive manner in specification, the highlights of each of the examples are with other realities
The difference of example is applied, the same or similar parts in each embodiment may refer to each other.For device disclosed in embodiment
Speech, since it is corresponded to the methods disclosed in the examples, so being described relatively simple, related place is referring to method part illustration
?.
Professional further appreciates that, unit described in conjunction with the examples disclosed in the embodiments of the present disclosure
And algorithm steps, can be realized with electronic hardware, computer software, or a combination of the two, in order to clearly demonstrate hardware and
The interchangeability of software generally describes each exemplary composition and step according to function in the above description.These
Function is implemented in hardware or software actually, the specific application and design constraint depending on technical solution.Profession
Technical staff can use different methods to achieve the described function each specific application, but this realization is not answered
Think beyond the scope of this invention.
Claims (9)
1. a kind of test data method for sorting of hard disk characterized by comprising
Using default script according to target hard disk length of testing speech and test frequency generate include each testing time point number
According to template file;
The target hard disk is tested for the property respectively using the test thread of preset quantity, is obtained and each test thread
Corresponding test data file packet;
According in the temporal information of the test data in each test data file packet and the data template file
Each test data is correspondingly arranged in the data template file by the corresponding relationship of testing time point;
The corresponding test data of testing time point same in the data template file is summarized.
2. the method according to claim 1, wherein the test according in each test data file packet
The corresponding relationship of the testing time point in the temporal information of data and the data template file, by each test data
It is correspondingly arranged in the data template file and specifically includes:
The test data in the same test data file packet is successively obtained sequentially in time;
Judge that the temporal information of the test data obtained is corresponding with the position to be written in the data template file
Testing time point it is whether identical;
If so, the test data that will acquire is set to the position to be written, and next testing time point is corresponding
Writing position is set as the position to be written;
If it is not, then centering zero in the position to be written, and institute is set by the corresponding writing position of next testing time point
State position to be written.
3. the method according to claim 1, wherein described according in each test data file packet
The corresponding relationship of testing time point in the temporal information of test data and the data template file, by each test data
It is correspondingly arranged in the data template file and specifically includes:
It is the second by the Conversion of measurement unit of the temporal information of each test data in each test data file packet;
According to the survey in the temporal information of each test data after conversion unit and the data template file
The corresponding relationship for trying time point, each test data is correspondingly arranged in the data template file.
4. the method according to claim 1, wherein it is described according to the preset length of testing speech to target hard disk and
Test frequency generation includes that the data template file of each testing time point specifically includes:
Obtain the test item to the target hard disk;
It is generated respectively according to length of testing speech corresponding with each test item and test frequency corresponding when including each test
Between the data template file put.
5. method according to any one of claims 1 to 4, which is characterized in that it is described will be in the data template file
After the corresponding test data of same testing time point summarizes, further comprise:
For the test data in the data template file and summarize the corresponding identification information of data addition.
6. according to the method described in claim 5, it is characterized in that, it is described by same test in the data template file when
Between put after corresponding test data summarizes, further comprise:
Summarize data described in form displaying using statistical graph.
7. a kind of test data collating unit of hard disk characterized by comprising
Data template file generating module, for using default script according to target hard disk length of testing speech and test frequency give birth to
At the data template file for including each testing time point;
Hard disk performance test module carries out performance survey to the target hard disk respectively for the test thread using preset quantity
Examination obtains test data file packet corresponding with each test thread;
Test data setup module, for according to the temporal information of the test data in each test data file packet with it is described
Each test data is correspondingly arranged in the data mould by the corresponding relationship of the testing time point in data template file
In plate file;
Test data summarizing module, for converging the corresponding test data of testing time point same in the data template file
Always.
8. a kind of test data collator of hard disk characterized by comprising
Memory, for storing computer program;
Processor realizes a kind of such as survey of hard disk as claimed in any one of claims 1 to 6 when for executing the computer program
The step of trying data preparation method.
9. a kind of computer readable storage medium, which is characterized in that be stored with computer on the computer readable storage medium
Program realizes a kind of such as test of hard disk as claimed in any one of claims 1 to 6 when the computer program is executed by processor
The step of data preparation method.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910155943.4A CN109828890A (en) | 2019-03-01 | 2019-03-01 | A kind of test data method for sorting, device, equipment and the storage medium of hard disk |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910155943.4A CN109828890A (en) | 2019-03-01 | 2019-03-01 | A kind of test data method for sorting, device, equipment and the storage medium of hard disk |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109828890A true CN109828890A (en) | 2019-05-31 |
Family
ID=66865096
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910155943.4A Pending CN109828890A (en) | 2019-03-01 | 2019-03-01 | A kind of test data method for sorting, device, equipment and the storage medium of hard disk |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109828890A (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111124281A (en) * | 2019-11-29 | 2020-05-08 | 浪潮(北京)电子信息产业有限公司 | Data storage method, device, equipment and storage medium of full flash memory storage system |
CN111258837A (en) * | 2020-01-10 | 2020-06-09 | 苏州浪潮智能科技有限公司 | Method, system, equipment and medium for arranging hard disk performance data |
CN113377613A (en) * | 2021-06-08 | 2021-09-10 | 深圳忆联信息系统有限公司 | Hard disk test monitoring method and device based on Windows system and computer equipment |
CN116520969A (en) * | 2023-07-04 | 2023-08-01 | 四川弘仁财电科技有限公司 | Device, system and method for controlling power consumption of server |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20020078271A1 (en) * | 2000-12-19 | 2002-06-20 | Berry Frank L. | Method and apparatus for multilevel translation and protection table |
CN103578568A (en) * | 2012-07-24 | 2014-02-12 | 苏州捷泰科信息技术有限公司 | Method and apparatus for testing performances of solid state disks |
CN107480039A (en) * | 2017-09-22 | 2017-12-15 | 郑州云海信息技术有限公司 | The small documents readwrite performance method of testing and device of a kind of distributed memory system |
CN108874645A (en) * | 2018-06-12 | 2018-11-23 | 郑州云海信息技术有限公司 | A kind of method and system for integrating FIO performance data |
-
2019
- 2019-03-01 CN CN201910155943.4A patent/CN109828890A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20020078271A1 (en) * | 2000-12-19 | 2002-06-20 | Berry Frank L. | Method and apparatus for multilevel translation and protection table |
CN103578568A (en) * | 2012-07-24 | 2014-02-12 | 苏州捷泰科信息技术有限公司 | Method and apparatus for testing performances of solid state disks |
CN107480039A (en) * | 2017-09-22 | 2017-12-15 | 郑州云海信息技术有限公司 | The small documents readwrite performance method of testing and device of a kind of distributed memory system |
CN108874645A (en) * | 2018-06-12 | 2018-11-23 | 郑州云海信息技术有限公司 | A kind of method and system for integrating FIO performance data |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111124281A (en) * | 2019-11-29 | 2020-05-08 | 浪潮(北京)电子信息产业有限公司 | Data storage method, device, equipment and storage medium of full flash memory storage system |
CN111124281B (en) * | 2019-11-29 | 2023-11-03 | 浪潮(北京)电子信息产业有限公司 | Data storage method, device, equipment and storage medium of full flash memory system |
CN111258837A (en) * | 2020-01-10 | 2020-06-09 | 苏州浪潮智能科技有限公司 | Method, system, equipment and medium for arranging hard disk performance data |
CN113377613A (en) * | 2021-06-08 | 2021-09-10 | 深圳忆联信息系统有限公司 | Hard disk test monitoring method and device based on Windows system and computer equipment |
CN116520969A (en) * | 2023-07-04 | 2023-08-01 | 四川弘仁财电科技有限公司 | Device, system and method for controlling power consumption of server |
CN116520969B (en) * | 2023-07-04 | 2023-09-08 | 四川弘仁财电科技有限公司 | Device, system and method for controlling power consumption of server |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109828890A (en) | A kind of test data method for sorting, device, equipment and the storage medium of hard disk | |
CN104765665A (en) | Method and device for testing hard disks | |
US20120079456A1 (en) | Systems and methods for identifying software performance influencers | |
CN109871326A (en) | A kind of method and apparatus that script is recorded | |
CN103605606B (en) | A kind of embedded software test use-case batch execution method that can automatically change | |
CN103514092A (en) | Method for automatic testing of software system of ATM | |
CN111078579A (en) | Monkey testing method and device and terminal equipment | |
CN110221953A (en) | Test result analysis method, apparatus, server and storage medium | |
CN110096430A (en) | Third party's SDK entry test method, apparatus, terminal and storage medium | |
CN113656174A (en) | Resource allocation method, system, computer device and storage medium | |
CN111966587A (en) | Data acquisition method, device and equipment | |
CN112363914B (en) | Parallel test resource allocation optimizing method, computing device and storage medium | |
CN102567351B (en) | Testing method and testing device for database modification effects | |
CN109800165A (en) | A kind of front end system test method and device | |
CN116149901A (en) | Data verification test method and device and computer readable storage medium | |
CN110209572A (en) | Ui testing method, ui testing system and terminal | |
CN105678234A (en) | Eye pattern automatic analysis method and apparatus | |
CN110297754A (en) | A kind of test information feedback method and system | |
US20170192878A1 (en) | Separating Test Coverage In Software Processes Using Shared Memory | |
US9275358B1 (en) | System, method, and computer program for automatically creating and submitting defect information associated with defects identified during a software development lifecycle to a defect tracking system | |
CN101174233A (en) | Test approach and system of embedded system | |
CN112631852A (en) | Macro checking method, macro checking device, electronic equipment and computer readable storage medium | |
CN112416727A (en) | Batch processing operation checking method, device, equipment and medium | |
CN111290743A (en) | Computer software technology development and debugging system | |
CN111309287A (en) | Method and system for generating software development scheme |
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 | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20190531 |
|
RJ01 | Rejection of invention patent application after publication |