CN108228437A - Promote method, apparatus, electronic device and the storage medium of test and appraisal accuracy - Google Patents

Promote method, apparatus, electronic device and the storage medium of test and appraisal accuracy Download PDF

Info

Publication number
CN108228437A
CN108228437A CN201711484209.XA CN201711484209A CN108228437A CN 108228437 A CN108228437 A CN 108228437A CN 201711484209 A CN201711484209 A CN 201711484209A CN 108228437 A CN108228437 A CN 108228437A
Authority
CN
China
Prior art keywords
database
application program
full
patterns
test
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
CN201711484209.XA
Other languages
Chinese (zh)
Other versions
CN108228437B (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.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp 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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201711484209.XA priority Critical patent/CN108228437B/en
Publication of CN108228437A publication Critical patent/CN108228437A/en
Application granted granted Critical
Publication of CN108228437B publication Critical patent/CN108228437B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • 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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3003Monitoring arrangements specially adapted to the computing system or computing system component being monitored
    • G06F11/3034Monitoring arrangements specially adapted to the computing system or computing system component being monitored where the computing system component is a storage system, e.g. DASD based or network based

Landscapes

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

Abstract

The embodiment of the invention discloses a kind of method, apparatus, electronic device and storage medium for promoting test and appraisal accuracy, method includes:When database is under FULL patterns, monitor whether there is the application program for accessing the database, if monitor to access the application program of the database, then determine whether the application program is application program for testing and assessing to database, if so, by above-mentioned database from FULL pattern switchings to non-FULL patterns.Compared to existing technologies, the embodiment of the present invention is when database is under FULL patterns, if it monitors to access the database to the application program that database is tested and assessed, then by above-mentioned database from FULL pattern switchings to non-FULL patterns, above-mentioned database is made to be in optimum state, so as to make above application program that can accurately reflect the optimum performance of above-mentioned database, and then effectively promote test and appraisal accuracy by the scoring that test and appraisal obtain.

Description

Promote method, apparatus, electronic device and the storage medium of test and appraisal accuracy
Technical field
The present invention relates to technical field of electronic device more particularly to a kind of method, apparatus for promoting test and appraisal accuracy, electronics Device and storage medium.
Background technology
With the fast development of the electronic devices such as such as mobile terminal, the application program of evaluation electronics performance is also increasingly It is more, when needing to test and assess to electronic device, it is only necessary to which relevant test and appraisal application program, Ran Houyun are installed in an electronic The row test and appraisal application program.Such as AndroBench is as a kind of test and appraisal application program, it can be to electronic device Storage performance is tested and assessed.
At present, each production firm can suitably reduce database in day to ensure the stability of database in electronic device Performance when often using, therefore when the performance of database in using test and appraisal application program to electronic device is tested and assessed, obtain Scoring often less than the scoring corresponding to database actual performance, i.e., existing database measures accuracy is relatively low.
Invention content
The main purpose of the embodiment of the present invention is to provide a kind of method, apparatus for promoting test and appraisal accuracy, electronic device And storage medium, the technical issues of database measures accuracy of the prior art is relatively low can be solved.
To achieve the above object, first aspect of the embodiment of the present invention provides a kind of method for promoting test and appraisal accuracy, the party Method includes:
When database is under FULL patterns, monitor whether there is the application program for accessing the database;
If monitor to access the application program of the database, it is determined that whether the application program is for database The application program tested and assessed;
If the application program is for the application program tested and assessed to database, by the database from FULL moulds Formula switches to non-FULL patterns.
Optionally, it is described that the step of whether application program is the application program for testing and assessing to database determined Including:
Determine the type of the application program;
The pre-set type set of application program for testing and assessing to database is searched, is determined described using journey Whether the type of sequence belongs to the type set;
If the type of the application program belongs to the type set, it is determined that the application program is for database The application program tested and assessed.
Optionally, it is described to include the database from FULL pattern switchings to the step of non-FULL patterns:
Determine stored data volume in the database;
Synchronous mode after the database switching is determined according to the data volume.
Optionally, the described the step of synchronous mode after the database switching is determined according to the data volume, includes:
If the data volume is more than predetermined threshold value, by the database from the FULL pattern switchings to OFF mode;
If the data volume be less than or equal to the predetermined threshold value, by the database from the FULL pattern switchings to Normal patterns.
Optionally, it is described to further include the database after FULL pattern switchings to the step of non-FULL patterns:
Monitor access process of the application program to the database;
At the end of the access process is monitored, the database is returned into FULL patterns from non-FULL pattern switchings.
To achieve the above object, second aspect of the embodiment of the present invention provides a kind of device for promoting test and appraisal accuracy, the dress Put including:
Monitoring modular accesses answering for the database for when database is under FULL patterns, monitoring whether to exist Use program;
Determining module, if for monitoring to access the application program of the database, it is determined that whether the application program For the application program for being used to test and assess to database;
Handover module, if being the application program for testing and assessing to database for the application program, by described in Database is from FULL pattern switchings to non-FULL patterns.
Optionally, the determining module includes:
First determining module, for determining the type of the application program;
Searching module, for searching the pre-set type set of application program for testing and assessing to database, Determine whether the type of the application program belongs to the type set;
Second determining module, if the type for the application program belongs to the type set, it is determined that the application Program is the application program for testing and assessing to database.
Optionally, the handover module is used for:
Determine stored data volume in the database, and after determining the database switching according to the data volume Synchronous mode.
Optionally, the handover module is used for:
If the data volume is more than predetermined threshold value, by the database from the FULL pattern switchings to OFF mode;
If the data volume be less than or equal to the predetermined threshold value, by the database from the FULL pattern switchings to Normal patterns.
Optionally, described device further includes:
Monitoring the process module, for being gone back after FULL pattern switchings to non-FULL patterns by the database, monitoring The application program is to the access process of the database;
Recovery module, at the end of monitor the access process, by the database from non-FULL pattern switchings Return FULL patterns.
To achieve the above object, the third aspect of the embodiment of the present invention provides a kind of electronic device, including memory, processor And the computer program that can be run on a memory and on a processor is stored, the processor performs the computer program When, realize each step in the method for promoting test and appraisal accuracy of first aspect.
To achieve the above object, fourth aspect of the embodiment of the present invention provides a kind of readable storage medium storing program for executing, the readable storage Medium is computer readable storage medium, is stored thereon with computer program, real when the computer program is executed by processor Each step in the method for the promotion test and appraisal accuracy of existing first aspect.
A kind of method for promoting test and appraisal accuracy provided in an embodiment of the present invention, including:FULL patterns are in database When lower, monitor whether there is the application program for accessing the database, if monitoring to access the application program of the database, it is determined that Whether the application program is application program for testing and assessing to database, if so, by above-mentioned database from FULL patterns Switch to non-FULL patterns.Compared to existing technologies, the embodiment of the present invention is when database is under FULL patterns, if prison It measures for accessing the database to the application program that database is tested and assessed, i.e., monitoring for testing and assessing to database Application program when testing and assessing to above-mentioned database, then above-mentioned database is made from FULL pattern switchings to non-FULL patterns Above-mentioned database is in optimum state, above-mentioned so as to which the scoring that above application program is obtained by test and appraisal be enable to accurately reflect The optimum performance of database, and then effectively promote test and appraisal accuracy.
Description of the drawings
In order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, to embodiment or will show below There is attached drawing needed in technology description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this Some embodiments of invention, for those skilled in the art, without creative efforts, can also basis These attached drawings obtain other attached drawings.
Fig. 1 is a kind of structure diagram of electronic device;
Fig. 2 is the flow diagram for the method that test and appraisal accuracy is promoted in first embodiment of the invention;
Fig. 3 is the flow diagram of the refinement step of step 202 in first embodiment of the invention;
Fig. 4 is the flow diagram of the refinement step of step 203 in first embodiment of the invention;
Fig. 5 is the flow diagram for the method that test and appraisal accuracy is promoted in second embodiment of the invention;
Fig. 6 is the program module schematic diagram for the device that test and appraisal accuracy is promoted in third embodiment of the invention;
Fig. 7 is the elaborator module diagram of determining module 602 in third embodiment of the invention;
Fig. 8 is the program module schematic diagram for the device that test and appraisal accuracy is promoted in fourth embodiment of the invention.
Specific embodiment
In order to make the invention's purpose, features and advantages of the invention more obvious and easy to understand, below in conjunction with the present invention The technical solution in the embodiment of the present invention is clearly and completely described in attached drawing in embodiment, it is clear that described reality It is only part of the embodiment of the present invention to apply example, and not all embodiments.Based on the embodiments of the present invention, people in the art Member's all other embodiments obtained without making creative work, shall fall within the protection scope of the present invention.
A kind of structure diagram of electronic device is shown with reference to Fig. 1, Fig. 1.It is provided in an embodiment of the present invention to promote test and appraisal standard The method of exactness can be applied in electronic device 10 as shown in Figure 1, and electronic device 10 can be, but not limited to include:Electricity need to be relied on Smart mobile phone, notebook, tablet computer, wearing smart machine that pond maintains normal operation and supports network and download function etc..
As shown in Figure 1, electronic device 10 includes memory 101, storage control 102, one or more (is only shown in figure One) processor 103, Peripheral Interface 104 and Touch Screen 105.These components pass through one or more communication bus/signal wire 106 mutually communications.
It is appreciated that structure shown in FIG. 1 is only to illustrate, the structure of electronic device is not caused to limit.Electronics fills It puts 10 and may also include than shown in Fig. 1 more either less components or with the configuration different from shown in Fig. 1.It is shown in FIG. 1 Hardware may be used in each component, software or combination is realized.
Memory 101 can be used for storage software program and module, such as the promotion test and appraisal accuracy in the embodiment of the present invention Method and the corresponding program instruction/module of electronic device, processor 103 software in memory 101 is stored in by operation Program and module so as to perform various functions application and data processing, that is, realize the side of above-mentioned promotion test and appraisal accuracy Method.
Memory 101 may include high speed random access memory, may also include nonvolatile memory, such as one or more magnetic Property storage device, flash memory or other non-volatile solid state memories.In some instances, memory 101 can further comprise Relative to the remotely located memory of processor 103, these remote memories can pass through network connection to electronic device 10.On The example for stating network includes but not limited to internet, intranet, LAN, mobile radio communication and combinations thereof.Processor 103 And other possible components can carry out the access of memory 101 under the control of storage control 102.
Various input/output devices are coupled to CPU and memory 101 by Peripheral Interface 104.The operation of processor 103 is deposited Various softwares in reservoir 101, instruction are to perform the various functions of electronic device 10 and carry out data processing.
In some embodiments, Peripheral Interface 104, processor 103 and storage control 102 can be in one single chips It realizes.In some other example, they can be realized by independent chip respectively.
Touch Screen 105 provides an output and input interface simultaneously between electronic device and user.Specifically, touch-control Screen 105 shows video output to user, and the content of these videos output may include word, figure, video and its arbitrary group It closes.Some outputs are the result is that corresponding to some user interface objects.Touch Screen 105 also receives the input of user, such as user The gesture operations such as click, slip, so that user interface object responds the input of these users.It detects input by user Technology can be based on resistance-type, condenser type or any other possible touch control detection technology.105 display unit of Touch Screen Specific example include but is not limited to liquid crystal display or light emitting polymer displays.
The method for describing to promote test and appraisal accuracy in the embodiment of the present invention based on above-mentioned electronic device.
Since in the prior art, each production firm can suitably reduce to ensure the stability of database in electronic device Performance of the database in routine use, therefore there is database measures accuracy.
In order to solve the above-mentioned technical problem, the present invention proposes a kind of method for promoting test and appraisal accuracy, in this method, in number When being under FULL patterns according to library, if monitoring for accessing the database to the application program that database is tested and assessed, that is, to exist When monitoring for testing and assessing to the application program that database is tested and assessed to above-mentioned database, then by above-mentioned database from FULL pattern switchings make above-mentioned database be in optimum state, so as to make above application program by test and appraisal to non-FULL patterns Obtained scoring can accurately reflect the optimum performance of above-mentioned database, and then effectively promote test and appraisal accuracy.
Referring to Fig. 2, Fig. 2 is the flow diagram for the method that test and appraisal accuracy is promoted in first embodiment of the invention, it should Method includes:
Step 201, when database is under FULL patterns, monitor whether there is the application journey for accessing the database Sequence;
In the embodiment of the present invention, after electronic device startup or unlock, the database first detected in the electronic device is No to be in FULL patterns, if detecting, database is in FULL patterns, monitors in electronic device with the presence or absence of the above-mentioned number of access According to the application program in library.
Wherein, for the database in electronic device, can generally have following three kinds of data synchronous modes:
(1) FULL patterns:Content in memory can be written back in database by each commit;
(2) Normal patterns:It is written back in database every 30 commit, then by the content in memory;
(3) OFF mode:Content in memory will not be written back in database.
In order to which electronic device is made to have higher stability, the database synchronization pattern of current most of electronic devices is silent Recognize using FULL patterns.
If step 202 monitors to access the application program of the database, it is determined that the application program whether be for The application program tested and assessed to database;
In the embodiment of the present invention, if monitoring to have the application program for accessing above-mentioned database in electronic device, it is determined that Whether the application program is application program for testing and assessing to database.
Wherein, the above-mentioned application program for being used to test and assess to database for can to database performance (such as storage performance, Reading and writing data performance etc.) application program tested and assessed, it, can be right if AndroBench is as a kind of test and appraisal application program The storage performance of database is tested and assessed.
If step 203, the application program are the application program for testing and assessing to database, by the database From FULL pattern switchings to non-FULL patterns.
In the embodiment of the present invention, however, it is determined that above application program is the application program for testing and assessing to database, then By above-mentioned database from FULL pattern switchings to non-FULL patterns.
Wherein it is possible to understand, when database is in FULL patterns, although the stability of database is best, Its performance can be relatively poor, if in the case where database is in FULL patterns, is used to test and assess to database using above-mentioned Application program test and assess to the database, the scoring of the database performance tested and assessed can then be less than the actual performance of database Scoring, therefore test and appraisal accuracy can be relatively low.
In the embodiment of the present invention, when the database for determining electronic device is in FULL patterns, if detecting for logarithm When the application program tested and assessed according to library accesses above-mentioned database, then by the synchronous mode of above-mentioned database from FULL pattern switchings To non-FULL patterns, so as to which the performance of above-mentioned database be made be in optimum state, it is possible thereby to make it is above-mentioned for database into The Performance Score that the application program of row test and appraisal obtains more is bonded the optimum performance of above-mentioned database.
It should be understood that above-mentioned be used for the application program that database is tested and assessed to the process of above-mentioned database access It can regard the process tested and assessed to the performance of above-mentioned database as.
In addition, if above application program is not intended to the application program tested and assessed to database, in electronic device Above-mentioned database is according to FULL pattern normal operations.
The method of promotion test and appraisal accuracy that the embodiment of the present invention is provided, compared to existing technologies, the present invention is real Example is applied when database is under FULL patterns, if monitoring to access the data to the application program that database is tested and assessed Library, i.e., when monitoring for testing and assessing to the application program that database is tested and assessed to above-mentioned database, then by above-mentioned number According to library from FULL pattern switchings to non-FULL patterns, above-mentioned database is made to be in optimum state, so as to pass through above application program The optimum performance of above-mentioned database can be accurately reflected, and then effectively promote test and appraisal accuracy by crossing the scoring that test and appraisal obtain.
Further, based on first embodiment of the invention, with reference to Fig. 3, Fig. 3 is step 202 in first embodiment of the invention Refinement step flow diagram, in the embodiment of the present invention, the application program that determines described in above-mentioned steps 202 is It is no be for test and assess to database application program the step of include:
Step 301, the type for determining the application program;
It is understood that application program is searched or is downloaded in order to facilitate user, each when being distributed to " using shop " Application program can all set corresponding type, such as " game ", " shopping ", " database test and appraisal " etc. according to its major function.
Wherein, the type corresponding to each application program can all be recorded in the application mark of each application program under normal conditions Label or application recommended information in, therefore, the embodiment of the present invention can by analyze above application program application label or Application message determines the type of above application program.
Step 302 searches the pre-set type set of application program for testing and assessing to database, determines institute Whether the type for stating application program belongs to the type set;
In the embodiment of the present invention, a type set can be pre-set, the type set includes announced all It can be used for the type for the application program tested and assessed to database, and timing updates the type set.When determine it is above-mentioned should After the type of program, you can searched in the above-mentioned type set, whether determine the corresponding type of above application program Belong to above application type, judge whether above application program is application program for testing and assessing to database with this.
If step 303, the type of the application program belong to the type set, it is determined that the application program be for The application program tested and assessed to database.
In the embodiment of the present invention, if can be determined there are the corresponding type of above application program in the above-mentioned type set Above application program is the application program for testing and assessing to database;Otherwise, it can determine that above application program is not For the application program tested and assessed to database.
The method of promotion test and appraisal accuracy that the embodiment of the present invention is provided, if monitoring the application journey of access database Sequence first determines the type of the application program, then searches the pre-set application program for being used to test and assess to database Type set, determines whether the type of the application program belongs to the above-mentioned type set, if belonging to, it is determined that the application program is uses In the application program tested and assessed to database, so as to which whether the application program that can be accurately judged to access database is to use In the application program tested and assessed to database.
Further, based on first embodiment of the invention, with reference to Fig. 4, Fig. 4 is step 203 in first embodiment of the invention Refinement step flow diagram, in the embodiment of the present invention, described in above-mentioned steps 203 by the database from FULL Pattern switching to the step of non-FULL patterns, includes:
Step 401 determines stored data volume in the database;
Step 402 determines the synchronous mode after the database switching according to the data volume.
In the embodiment of the present invention, above-mentioned non-FULL patterns include Normal patterns and OFF mode, by above-mentioned database from During FULL pattern switchings to non-FULL patterns, need first to determine stored data volume in above-mentioned database, then according to data In library stored data volume come determine database switching after synchronous mode.
Specifically, the step of the synchronous mode after the database switching is determined in above-mentioned steps 402 according to the data volume Suddenly include:
Step A:If the data volume is more than predetermined threshold value, by the database from the FULL pattern switchings to OFF Pattern;
Step B:If the data volume is less than or equal to the predetermined threshold value, by the database from the FULL patterns Switch to Normal patterns.
It is understood that when database is in Normal patterns, electronic device is every 30 commit, then by memory In content be written back in database, therefore when data volume stored in database is larger, if still with every 30 times Content in memory is written back in database by commit, then can influence the performance of data, and then influence the standard of database test and appraisal Exactness;And when database is in OFF mode, the content in memory just will not be written back in database by electronic device, therefore When stored data volume is larger in the database, the performance of database can't be had an impact.
The method of promotion test and appraisal accuracy that the embodiment of the present invention is provided, by above-mentioned database from FULL pattern switchings During to non-FULL patterns, first determine stored data volume in above-mentioned database, above-mentioned data are then determined according to the data volume Synchronous mode after the switching of library, so as to effectively reduce in database stored data volume to the shadow of database performance It rings, the performance of database is made to be in best state during performance measuring and evaluating, it is possible thereby to effectively promote the accurate of test and appraisal Degree.
Further, based on first embodiment of the invention, with reference to Fig. 5, Fig. 5 is that test and appraisal are promoted in second embodiment of the invention The flow diagram of the method for accuracy, in the embodiment of the present invention, the method for above-mentioned promotion test and appraisal accuracy includes:
Step 501, when database is under FULL patterns, monitor whether there is the application journey for accessing the database Sequence;
If step 502 monitors to access the application program of the database, it is determined that the application program whether be for The application program tested and assessed to database;
If step 503, the application program are the application program for testing and assessing to database, by the database From FULL pattern switchings to non-FULL patterns;
In the embodiment of the present invention, step 201 in step 501 to the described content of step 503 and first embodiment to The content that step 203 describes is similar, please refers to step 201 to step 203, is not repeated herein.
Step 504 monitors access process of the application program to the database;
Step 505, at the end of the access process is monitored, by the database from non-FULL pattern switchings return FULL Pattern.
It in the embodiment of the present invention, in order to ensure the stability of database, needs after test and appraisal terminate, by above-mentioned number According to library FULL patterns are returned from non-FULL pattern switchings.
Specifically, the above-mentioned access process of application program for testing and assessing to database is monitored, when detecting the visit At the end of asking process, above-mentioned database is just returned into FULL patterns from non-FULL pattern switchings, so as to ensure the stability of database.
The method of promotion test and appraisal accuracy that the embodiment of the present invention is provided, when monitoring for testing and assessing to database Application program access process at the end of, just by above-mentioned database from non-FULL pattern switchings return FULL patterns, can both make Evaluating result has higher accuracy, can also ensure the stability of database.
Further, in order to solve the above-mentioned technical problem, the embodiment of the present invention additionally provides a kind of promotion test and appraisal accuracy Device, referring to Fig. 6, Fig. 6 be third embodiment of the invention in promoted test and appraisal accuracy device program module schematic diagram, The device includes:
Monitoring modular 601 accesses the database for when database is under FULL patterns, monitoring whether to exist Application program;
In the embodiment of the present invention, after electronic device startup or unlock, the database first detected in the electronic device is No to be in FULL patterns, whether if detecting, database is in FULL patterns, monitored in electronic device and deposited by monitoring modular 601 In the application program for accessing above-mentioned database.
Wherein, for the database in electronic device, can generally have following three kinds of data synchronous modes:
(1) FULL patterns:Content in memory can be written back in database by each commit;
(2) Normal patterns:It is written back in database every 30 commit, then by the content in memory;
(3) OFF mode:Content in memory will not be written back in database.
In order to which electronic device is made to have higher stability, the database synchronization pattern of current most of electronic devices is silent Recognize using FULL patterns.
Determining module 602, if for monitoring to access the application program of the database, it is determined that the application program is No is the application program for testing and assessing to database;
In the embodiment of the present invention, if monitoring to have the application program for accessing above-mentioned database in electronic device, it is determined that Whether the application program is application program for testing and assessing to database.
Wherein, the above-mentioned application program for being used to test and assess to database for can to database performance (such as storage performance, Reading and writing data performance etc.) application program tested and assessed, it, can be right if AndroBench is as a kind of test and appraisal application program The storage performance of database is tested and assessed.
Handover module 603, if being the application program for testing and assessing to database for the application program, by institute Database is stated from FULL pattern switchings to non-FULL patterns.
In the embodiment of the present invention, however, it is determined that above application program is the application program for testing and assessing to database, then By above-mentioned database from FULL pattern switchings to non-FULL patterns.
Wherein it is possible to understand, when database is in FULL patterns, although the stability of database is best, Its performance can be relatively poor, if in the case where database is in FULL patterns, is used to test and assess to database using above-mentioned Application program test and assess to the database, the scoring of the database performance tested and assessed can then be less than the actual performance of database Scoring, therefore test and appraisal accuracy can be relatively low.
In the embodiment of the present invention, when the database for determining electronic device is in FULL patterns, if detecting for logarithm When the application program tested and assessed according to library accesses above-mentioned database, then by the synchronous mode of above-mentioned database from FULL pattern switchings To non-FULL patterns, so as to which the performance of above-mentioned database be made be in optimum state, it is possible thereby to make it is above-mentioned for database into The Performance Score that the application program of row test and appraisal obtains more is bonded the optimum performance of above-mentioned database.
It should be understood that above-mentioned be used for the application program that database is tested and assessed to the process of above-mentioned database access It can regard the process tested and assessed to the performance of above-mentioned database as.
In addition, if above application program is not intended to the application program tested and assessed to database, in electronic device Above-mentioned database is according to FULL pattern normal operations.
The device of promotion test and appraisal accuracy that the embodiment of the present invention is provided, compared to existing technologies, in database When under FULL patterns, if monitoring for accessing the database to the application program that database is tested and assessed, that is, monitoring During to for testing and assessing to the application program that database is tested and assessed to above-mentioned database, then by above-mentioned database from FULL moulds Formula switches to non-FULL patterns, and above-mentioned database is made to be in optimum state, so as to which above application program be made to pass through what test and appraisal obtained Scoring can accurately reflect the optimum performance of above-mentioned database, and then effectively promote test and appraisal accuracy.
Further, based on third embodiment of the invention, with reference to Fig. 7, Fig. 7 is determining module in third embodiment of the invention 602 elaborator module diagram, in the embodiment of the present invention, above-mentioned determining module 602 includes:
First determining module 701, for determining the type of the application program;
It is understood that application program is searched or is downloaded in order to facilitate user, each when being distributed to " using shop " Application program can all set corresponding type, such as " game ", " shopping ", " database test and appraisal " etc. according to its major function.
Wherein, the type corresponding to each application program can all be recorded in the application mark of each application program under normal conditions Label or application recommended information in, therefore, the embodiment of the present invention can by analyze above application program application label or Application message determines the type of above application program.
Searching module 702, for searching the pre-set set of types of application program for testing and assessing to database It closes, determines whether the type of the application program belongs to the type set;
In the embodiment of the present invention, a type set can be pre-set, the type set includes announced all It can be used for the type for the application program tested and assessed to database, and timing updates the type set.When determine it is above-mentioned should After the type of program, you can searched in the above-mentioned type set, whether determine the corresponding type of above application program Belong to above application type, judge whether above application program is application program for testing and assessing to database with this.
Second determining module 703, if the type for the application program belongs to the type set, it is determined that described to answer It is the application program for testing and assessing to database with program.
In the embodiment of the present invention, if can be determined there are the corresponding type of above application program in the above-mentioned type set Above application program is the application program for testing and assessing to database;Otherwise, it can determine that above application program is not For the application program tested and assessed to database.
The device of promotion test and appraisal accuracy that the embodiment of the present invention is provided, if monitoring the application journey of access database Sequence first determines the type of the application program, then searches the pre-set application program for being used to test and assess to database Type set, determines whether the type of the application program belongs to the above-mentioned type set, if belonging to, it is determined that the application program is uses In the application program tested and assessed to database, so as to which whether the application program that can be accurately judged to access database is to use In the application program tested and assessed to database.
Further, based on first embodiment of the invention, in the embodiment of the present invention, above-mentioned handover module 603 is used for:
Determine stored data volume in the database, and after determining the database switching according to the data volume Synchronous mode.
In the embodiment of the present invention, above-mentioned non-FULL patterns include Normal patterns and OFF mode, by above-mentioned database from During FULL pattern switchings to non-FULL patterns, need first to determine stored data volume in above-mentioned database, then according to data In library stored data volume come determine database switching after synchronous mode.
Specifically, above-mentioned handover module 603 is used for:
If the data volume is more than predetermined threshold value, by the database from the FULL pattern switchings to OFF mode;
If the data volume be less than or equal to the predetermined threshold value, by the database from the FULL pattern switchings to Normal patterns.
It is understood that when database is in Normal patterns, electronic device is every 30 commit, then by memory In content be written back in database, therefore when data volume stored in database is larger, if still with every 30 times Content in memory is written back in database by commit, then can influence the performance of data, and then influence the standard of database test and appraisal Exactness;And when database is in OFF mode, the content in memory just will not be written back in database by electronic device, therefore When stored data volume is larger in the database, the performance of database can't be had an impact.
The device of promotion test and appraisal accuracy that the embodiment of the present invention is provided, by above-mentioned database from FULL pattern switchings During to non-FULL patterns, first determine stored data volume in above-mentioned database, above-mentioned data are then determined according to the data volume Synchronous mode after the switching of library, so as to effectively reduce in database stored data volume to the shadow of database performance It rings, the performance of database is made to be in best state during performance measuring and evaluating, it is possible thereby to effectively promote the accurate of test and appraisal Degree.
Further, based on third embodiment of the invention, with reference to Fig. 8, Fig. 8 is that test and appraisal are promoted in fourth embodiment of the invention The program module schematic diagram of the device of accuracy, in the embodiment of the present invention, the device of above-mentioned promotion test and appraisal accuracy includes:
Monitoring modular 601 accesses the database for when database is under FULL patterns, monitoring whether to exist Application program;
Determining module 602, if for monitoring to access the application program of the database, it is determined that the application program is No is the application program for testing and assessing to database;
Handover module 603, if being the application program for testing and assessing to database for the application program, by institute Database is stated from FULL pattern switchings to non-FULL patterns;
Monitoring the process module 801, for monitoring access process of the application program to the database;
Recovery module 802, at the end of the access process is monitored, the database to be cut from non-FULL patterns Gain FULL patterns.
It in the embodiment of the present invention, in order to ensure the stability of database, needs after test and appraisal terminate, by above-mentioned number According to library FULL patterns are returned from non-FULL pattern switchings.
Specifically, the above-mentioned access process of application program for testing and assessing to database is monitored, when detecting the visit At the end of asking process, above-mentioned database is just returned into FULL patterns from non-FULL pattern switchings, so as to ensure the stability of database.
The device of promotion test and appraisal accuracy that the embodiment of the present invention is provided, when monitoring for testing and assessing to database Application program access process at the end of, just by above-mentioned database from non-FULL pattern switchings return FULL patterns, can both make Evaluating result has higher accuracy, can also ensure the stability of database.
The embodiment of the present invention also provides a kind of electronic device, including memory, processor and storage on a memory and can The computer program run on a processor when processor performs computer program, realizes first embodiment to second embodiment In promotion test and appraisal accuracy in any one embodiment method in each step.
The embodiment of the present invention also provides a kind of readable storage medium storing program for executing, which is computer-readable storage medium Matter is stored thereon with computer program, when computer program is executed by processor, realizes in first embodiment to second embodiment Each step in the method for promotion test and appraisal accuracy in any one embodiment.
In several embodiments provided herein, it should be understood that disclosed device and method can pass through it Its mode is realized.For example, the apparatus embodiments described above are merely exemplary, for example, the division of the module, only Only a kind of division of logic function can have other dividing mode in actual implementation, such as multiple module or components can be tied It closes or is desirably integrated into another system or some features can be ignored or does not perform.Another point, it is shown or discussed Mutual coupling, direct-coupling or communication connection can be the INDIRECT COUPLING or logical by some interfaces, device or module Letter connection can be electrical, machinery or other forms.
The module illustrated as separating component may or may not be physically separate, be shown as module The component shown may or may not be physical module, you can be located at a place or can also be distributed to multiple On network module.Some or all of module therein can be selected according to the actual needs to realize the mesh of this embodiment scheme 's.
In addition, each function module in each embodiment of the present invention can be integrated in a processing module, it can also That modules are individually physically present, can also two or more modules be integrated in a module.Above-mentioned integrated mould The form that hardware had both may be used in block is realized, can also be realized in the form of software function module.
If the integrated module is realized in the form of software function module and is independent product sale or uses When, it can be stored in a computer read/write memory medium.Based on such understanding, technical scheme of the present invention is substantially The part to contribute in other words to the prior art or all or part of the technical solution can be in the form of software products It embodies, which is stored in a storage medium, is used including some instructions so that a computer Equipment (can be personal computer, server or the network equipment etc.) performs the complete of each embodiment the method for the present invention Portion or part steps.And aforementioned storage medium includes:USB flash disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic disc or CD etc. are various can store journey The medium of sequence code.
It should be noted that for aforementioned each method embodiment, describe, therefore it is all expressed as a series of for simplicity Combination of actions, but those skilled in the art should know, the present invention is not limited by described sequence of movement because According to the present invention, certain steps may be used other sequences or be carried out at the same time.Secondly, those skilled in the art should also know It knows, embodiment described in this description belongs to preferred embodiment, and involved action and module might not all be this hairs Necessary to bright.
In the above-described embodiments, it all emphasizes particularly on different fields to the description of each embodiment, there is no the portion being described in detail in some embodiment Point, it may refer to the associated description of other embodiments.
It is to be situated between to a kind of method, apparatus for promoting test and appraisal accuracy provided by the present invention, electronic device and storage above The description of matter, for the thought of those skilled in the art, according to the present invention embodiment, in specific embodiment and application range Upper there will be changes, to sum up, the content of the present specification should not be construed as limiting the invention.

Claims (12)

  1. A kind of 1. method for promoting test and appraisal accuracy, which is characterized in that the method includes:
    When database is under FULL patterns, monitor whether there is the application program for accessing the database;
    If monitor to access the application program of the database, it is determined that whether the application program is for being carried out to database The application program of test and appraisal;
    If the application program is the application program for testing and assessing to database, the database is cut from FULL patterns Shift to non-FULL patterns.
  2. 2. according to the method described in claim 1, it is characterized in that, described determine whether the application program is for data The step of application program that library is tested and assessed, includes:
    Determine the type of the application program;
    The pre-set type set of application program for testing and assessing to database is searched, determines the application program Whether type belongs to the type set;
    If the type of the application program belongs to the type set, it is determined that the application program is for being carried out to database The application program of test and appraisal.
  3. 3. according to the method described in claim 1, it is characterized in that, it is described by the database from FULL pattern switchings to non- The step of FULL patterns, includes:
    Determine stored data volume in the database;
    Synchronous mode after the database switching is determined according to the data volume.
  4. 4. according to the method described in claim 3, it is characterized in that, described determine that the database switches according to the data volume The step of rear synchronous mode, includes:
    If the data volume is more than predetermined threshold value, by the database from the FULL pattern switchings to OFF mode;
    If the data volume be less than or equal to the predetermined threshold value, by the database from the FULL pattern switchings to Normal patterns.
  5. 5. method according to any one of claims 1 to 4, which is characterized in that it is described by the database from FULL moulds Formula further includes after switching to the step of non-FULL patterns:
    Monitor access process of the application program to the database;
    At the end of the access process is monitored, the database is returned into FULL patterns from non-FULL pattern switchings.
  6. 6. a kind of device for promoting test and appraisal accuracy, which is characterized in that described device includes:
    Monitoring modular, for when database is under FULL patterns, monitoring whether to have the application journey for accessing the database Sequence;
    Determining module, if for monitoring to access the application program of the database, it is determined that whether the application program is use In the application program tested and assessed to database;
    Handover module, if being the application program for testing and assessing to database for the application program, by the data Library is from FULL pattern switchings to non-FULL patterns.
  7. 7. device according to claim 6, which is characterized in that the determining module includes:
    First determining module, for determining the type of the application program;
    Searching module for searching the pre-set type set of application program for testing and assessing to database, determines Whether the type of the application program belongs to the type set;
    Second determining module, if the type for the application program belongs to the type set, it is determined that the application program For the application program for being used to test and assess to database.
  8. 8. device according to claim 6, which is characterized in that the handover module is used for:
    It determines stored data volume in the database, and the synchronization after the database switching is determined according to the data volume Pattern.
  9. 9. device according to claim 8, which is characterized in that the handover module is used for:
    If the data volume is more than predetermined threshold value, by the database from the FULL pattern switchings to OFF mode;
    If the data volume be less than or equal to the predetermined threshold value, by the database from the FULL pattern switchings to Normal patterns.
  10. 10. according to the device described in claim 6 to 9 any one, which is characterized in that described device further includes:
    Monitoring the process module, for being gone back after FULL pattern switchings to non-FULL patterns by the database, described in monitoring Application program is to the access process of the database;
    Recovery module, at the end of the access process is monitored, the database to be returned from non-FULL pattern switchings FULL patterns.
  11. 11. a kind of electronic device including memory, processor and stores the calculating that can be run on a memory and on a processor Machine program, which is characterized in that when the processor performs the computer program, realize described in claim 1 to 5 any one Promotion test and appraisal accuracy method in each step.
  12. 12. a kind of readable storage medium storing program for executing, the readable storage medium storing program for executing is computer readable storage medium, is stored thereon with computer Program, which is characterized in that when the computer program is executed by processor, realize carrying described in claim 1 to 5 any one Rise each step in the method for test and appraisal accuracy.
CN201711484209.XA 2017-12-29 2017-12-29 Method and device for improving evaluation accuracy, electronic device and storage medium Active CN108228437B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711484209.XA CN108228437B (en) 2017-12-29 2017-12-29 Method and device for improving evaluation accuracy, electronic device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711484209.XA CN108228437B (en) 2017-12-29 2017-12-29 Method and device for improving evaluation accuracy, electronic device and storage medium

Publications (2)

Publication Number Publication Date
CN108228437A true CN108228437A (en) 2018-06-29
CN108228437B CN108228437B (en) 2021-08-31

Family

ID=62646323

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711484209.XA Active CN108228437B (en) 2017-12-29 2017-12-29 Method and device for improving evaluation accuracy, electronic device and storage medium

Country Status (1)

Country Link
CN (1) CN108228437B (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101093462A (en) * 2006-06-22 2007-12-26 上海全成通信技术有限公司 Automatization method for testing schooling pressure on database application
US20120016621A1 (en) * 2010-07-13 2012-01-19 Salesforce.Com, Inc. Method and system for multi-mode testing through operation interface and scenario abstraction in a multi-tenant database environment
CN103198010A (en) * 2012-01-06 2013-07-10 腾讯科技(深圳)有限公司 Software testing method, device and system
CN104112003A (en) * 2014-07-14 2014-10-22 广州华多网络科技有限公司 Method and system for detecting performance of game terminals
CN105446825A (en) * 2014-06-12 2016-03-30 阿里巴巴集团控股有限公司 Database test method and device
CN105975603A (en) * 2016-05-11 2016-09-28 深圳市永兴元科技有限公司 Database performance test method and device
CN106681867A (en) * 2015-11-09 2017-05-17 阿里巴巴集团控股有限公司 Testing method and device
CN107145432A (en) * 2017-03-30 2017-09-08 华为技术有限公司 A kind of method and client for setting up model database

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101093462A (en) * 2006-06-22 2007-12-26 上海全成通信技术有限公司 Automatization method for testing schooling pressure on database application
US20120016621A1 (en) * 2010-07-13 2012-01-19 Salesforce.Com, Inc. Method and system for multi-mode testing through operation interface and scenario abstraction in a multi-tenant database environment
CN103198010A (en) * 2012-01-06 2013-07-10 腾讯科技(深圳)有限公司 Software testing method, device and system
CN105446825A (en) * 2014-06-12 2016-03-30 阿里巴巴集团控股有限公司 Database test method and device
CN104112003A (en) * 2014-07-14 2014-10-22 广州华多网络科技有限公司 Method and system for detecting performance of game terminals
CN106681867A (en) * 2015-11-09 2017-05-17 阿里巴巴集团控股有限公司 Testing method and device
CN105975603A (en) * 2016-05-11 2016-09-28 深圳市永兴元科技有限公司 Database performance test method and device
CN107145432A (en) * 2017-03-30 2017-09-08 华为技术有限公司 A kind of method and client for setting up model database

Also Published As

Publication number Publication date
CN108228437B (en) 2021-08-31

Similar Documents

Publication Publication Date Title
CN109189682A (en) A kind of script method for recording and device
US20180173495A1 (en) Duplicate and similar bug report detection and retrieval using neural networks
CN105807997B (en) A kind of touch screen sensitivity regulation method and device
TWI621062B (en) Method and device for searching message record in touch screen terminal
CN110018920A (en) A kind of detection method, device and the equipment of page presentation exception
CN110532489A (en) Methods of exhibiting, device, equipment and the medium of the page
CN105373587A (en) Picture display method and terminal
CN103916436A (en) Information pushing method, device, terminal and server
WO2012024142A2 (en) Inferring that a message has been read
US10684942B2 (en) Selective application testing
CN104572348A (en) Terminal
CN111930277A (en) Method and equipment for providing presence information
CN106161133A (en) The method of testing of a kind of web page loading time and device
CN111523039B (en) Method and device for processing book promotion request in reading application
CN102866885A (en) Method and device for confirming clicking position in webpage
CN112306606A (en) Method and equipment for presenting control style
CN111538453B (en) Book detail page display method, terminal and computer storage medium
CN106535102B (en) A kind of mobile terminal locating method and mobile terminal
CN108228437A (en) Promote method, apparatus, electronic device and the storage medium of test and appraisal accuracy
JP2013140549A (en) Semiconductor testing device, semiconductor test method and program for the same
CN113590914B (en) Information processing method, apparatus, electronic device and storage medium
CN116225690A (en) Memory multidimensional database calculation load balancing method and system based on docker
CN114995675A (en) Method for detecting touch jumping point fault, electronic equipment and readable storage medium
US20160147902A1 (en) Data provision device, data provision method, and data provision program
CN111666250B (en) Method and device for processing book promotion request information in reading application

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
CB02 Change of applicant information
CB02 Change of applicant information

Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Applicant after: OPPO Guangdong Mobile Communications Co.,Ltd.

Address before: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Applicant before: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

GR01 Patent grant
GR01 Patent grant