Data synchronization performance detection method and device, computer equipment and storage medium
By obtaining and analyzing data collection duration, objective assessment of data synchronization performance, solving the problem of strong artificial testing in existing technology, and realizing more accurate and reliable data synchronization performance detection.
Patent Information
- Application Number
- CN202411556547.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-04
- Publication Date
- 2025-01-28
AI Technical Summary
In the prior art, the detection of data synchronization performance depends on manual, resulting in strong subjectivity and poor objectivity of the results.
By obtaining the data collection duration of the data to be detected, the target collection duration is determined, and the standard collection duration based on the target collection duration and the preset standards, calculate the data synchronization performance score, thereby objectively evaluate the data synchronization performance.
The objective detection of data synchronization performance is realized, artificial subjectivity is reduced, and the accuracy and reliability of the test results are improved.
Smart Images

Figure CN119383109A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technology, and in particular to a data synchronization performance detection method, device, computer equipment and storage medium. Background Art
[0002] With the development of computer technology, a metering automation system has emerged. The system can be deployed in the cloud or edge cluster respectively to achieve data interoperability between the cloud and edge clusters. Therefore, how to determine the data synchronization performance between the cloud and edge clusters is crucial.
[0003] In traditional technologies, the detection of data synchronization performance is usually based on manual detection of data synchronization performance to obtain data synchronization performance detection results. The detection results often have the problem of being subjective due to strong manual subjectivity, resulting in non-objective results. Summary of the invention
[0004] Based on this, it is necessary to provide a data synchronization performance detection method, device, computer equipment and storage medium that can objectively detect data synchronization performance in response to the above technical problems.
[0005] In a first aspect, the present application provides a data synchronization performance detection method, comprising:
[0006] Obtain the data collection time of each data to be detected;
[0007] Determine the target collection time according to the data collection time of each data to be detected;
[0008] Determine the data synchronization performance of the data to be detected based on the target collection time and the preset standard collection time;
[0009] The data to be detected includes at least one of meter code data, power data and voltage data of the electricity user.
[0010] In one embodiment, determining the target collection time according to the data collection time of each to-be-detected data includes:
[0011] According to the data collection time of each data to be detected, the collection ranking of each data collection time is determined;
[0012] Select the data collection duration of the preset collection ranking as the target collection duration.
[0013] In one embodiment, according to the data collection time of each data to be detected, determining the collection ranking of each data collection time includes:
[0014] According to the data collection time of each data to be detected and the preset sorting method, the data collection time is sorted to obtain a sorting result;
[0015] According to the sorting results, the collection ranking of each data collection duration is determined.
[0016] In one embodiment, selecting the data collection duration of the preset collection ranking as the target collection duration includes:
[0017] According to the sorting method, the data collection time of the preset collection ranking is selected as the target collection time of the data to be tested.
[0018] In one embodiment, determining data synchronization performance of the data to be detected according to the target collection time and the standard collection time includes:
[0019] Determine the data synchronization score of the data to be detected according to the difference between the target collection time and the standard collection time;
[0020] The data synchronization performance of the data to be detected is determined according to the data synchronization score of the data to be detected.
[0021] In one embodiment, determining the data synchronization score of the data to be detected according to the difference between the target collection time and the standard collection time includes:
[0022] If the target collection time is greater than or equal to the standard collection time, the data synchronization score of the to-be-detected data is determined to be a first score value;
[0023] If the target collection time is less than the standard collection time, determining the data synchronization score of the to-be-detected data to be a second score value;
[0024] The second score value is greater than the first score value.
[0025] In a second aspect, the present application also provides a data synchronization performance detection device, including:
[0026] The duration acquisition module is used to obtain the data acquisition duration of each data to be detected;
[0027] A duration determination module is used to determine a target collection duration according to the data collection duration of each data to be detected;
[0028] The performance determination module is used to determine the data synchronization performance of the data to be detected according to the target collection time and the preset standard collection time; wherein the data to be detected includes: at least one of the meter code data, power data and voltage data of the electricity user.
[0029] In a third aspect, the present application further provides a computer device, including a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the following steps are implemented:
[0030] Obtain the data collection time of each data to be detected;
[0031] Determine the target collection time according to the data collection time of each data to be detected;
[0032] Determine the data synchronization performance of the data to be detected based on the target collection time and the preset standard collection time;
[0033] The data to be detected includes at least one of meter code data, power data and voltage data of the electricity user.
[0034] In a fourth aspect, the present application further provides a computer-readable storage medium having a computer program stored thereon, wherein when the computer program is executed by a processor, the following steps are implemented:
[0035] Obtain the data collection time of each data to be detected;
[0036] Determine the target collection time according to the data collection time of each data to be detected;
[0037] Determine the data synchronization performance of the data to be detected based on the target collection time and the preset standard collection time;
[0038] The data to be detected includes at least one of meter code data, power data and voltage data of the electricity user.
[0039] In a fifth aspect, the present application further provides a computer program product, including a computer program, which implements the following steps when executed by a processor:
[0040] Obtain the data collection time of each data to be detected;
[0041] Determine the target collection time according to the data collection time of each data to be detected;
[0042] Determine the data synchronization performance of the data to be detected based on the target collection time and the preset standard collection time;
[0043] The data to be detected includes at least one of meter code data, power data and voltage data of the electricity user.
[0044] The above-mentioned data synchronization performance detection method, device, computer equipment and storage medium obtain the data collection time of each data to be detected; determine the target collection time according to the data collection time of each data to be detected; determine the data synchronization performance of the data to be detected according to the target collection time and the preset standard collection time; wherein the data to be detected includes: at least one of the meter code data, power data and voltage data of the electricity user. This embodiment proposes a relatively standard and objective standard collection time to determine the degree of difference between the target collection time and the standard collection time, thereby accurately and objectively determining the data synchronization performance of the data to be detected. BRIEF DESCRIPTION OF THE DRAWINGS
[0045] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the related technologies, the drawings required for use in the embodiments or the related technical descriptions are briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0046] FIG1 is an application environment diagram of a data synchronization performance detection method provided by this embodiment;
[0047] FIG2 is a schematic diagram of a flow chart of a first data synchronization performance detection method provided by this embodiment;
[0048] FIG3 is a schematic diagram of a flow chart of a second data synchronization performance detection method provided by this embodiment;
[0049] FIG4 is a structural block diagram of a data synchronization performance detection device provided by this embodiment;
[0050] FIG5 is an internal structure diagram of a first computer device provided in this embodiment;
[0051] FIG6 is a diagram showing the internal structure of a second type of computer device provided in this embodiment. DETAILED DESCRIPTION
[0052] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0053] The data synchronization performance detection method provided in the embodiment of the present application can be applied to the application environment shown in Figure 1. Among them, the terminal 102 communicates with the server 104 through the network. The data storage system can store the data that the server 104 needs to process. The data storage system can be integrated on the server 104, or it can be placed on the cloud or other network servers. The computer device obtains the data collection time of each data to be detected; according to the data collection time of each data to be detected, the target collection time is determined; according to the target collection time and the preset standard collection time, the data synchronization performance of the data to be detected is determined; wherein the data to be detected includes: at least one of the meter code data, power data and voltage data of the electricity user. Among them, the computer device can be a terminal or a server. The terminal 102 can be, but is not limited to, various personal computers, laptops, smart phones, tablet computers, Internet of Things devices and portable wearable devices. The Internet of Things devices can be smart speakers, smart TVs, smart air conditioners, smart car-mounted devices, etc. Portable wearable devices can be smart watches, smart bracelets, head-mounted devices, etc. The server 104 can be implemented with an independent server or a server cluster consisting of multiple servers.
[0054] In an exemplary embodiment, as shown in FIG2 , a data synchronization performance detection method is provided, which is described by taking the method applied to the computer device in FIG1 as an example, and includes the following steps 201 to 203. Among them:
[0055] Step 201, obtaining the data collection time of each data to be detected.
[0056] The data to be detected includes at least one of meter code data, power data and voltage data of the electricity user. The data collection time may be the time for collecting the data to be detected.
[0057] Specifically, the computer device sends a quality detection request to the cloud-edge data synchronization timeliness detection component deployed in the cloud or edge cluster through the network; the cloud or edge cluster responds to the quality detection request and feeds back the data collection time of the data to be detected to the computer device; the computer device receives the data collection time of the data to be detected.
[0058] It should be noted that, taking the cloud as an example, the cloud receives the mutual data to be detected sent by the edge cluster, takes the task start time of the data to be detected as the start time of data collection, and takes the storage time of the data to be detected in the cloud as the end time of data collection; the difference between the data collection start time and the data collection end time is taken as the data collection duration of the data to be detected.
[0059] Step 202, determining a target collection duration according to the data collection duration of each data to be detected.
[0060] Specifically, for the data collection time of each to-be-detected data, the average value among the data collection time of all to-be-detected data is determined, and the average value is used as the target collection time.
[0061] Step 203: Determine the data synchronization performance of the data to be detected according to the target collection time and the preset standard collection time.
[0062] Specifically, the data synchronization performance score of the data to be detected is determined according to the degree of difference between the target collection time and the preset standard collection time; the quality of the data synchronization performance of the data to be detected is determined according to the data synchronization performance result corresponding to the score interval to which the data synchronization performance score belongs.
[0063] Exemplarily, if the data synchronization performance score is 60 points, and the data synchronization performance result corresponding to the score interval to which the data synchronization performance score belongs is qualified, then the data synchronization performance of the data to be tested is determined to be qualified; if the data synchronization performance score is 80 points, and the data synchronization performance result corresponding to the score interval to which the data synchronization performance score belongs is excellent, then the data synchronization performance of the data to be tested is determined to be excellent.
[0064] The above-mentioned data synchronization performance detection method obtains the data collection time of each data to be detected; determines the target collection time according to the data collection time of each data to be detected; determines the data synchronization performance of the data to be detected according to the target collection time and the preset standard collection time; wherein the data to be detected includes: at least one of the meter code data, power data and voltage data of the electricity user. This embodiment proposes a relatively standard and objective standard collection time to determine the degree of difference between the target collection time and the standard collection time, thereby accurately and objectively determining the data synchronization performance of the data to be detected.
[0065] In one embodiment, the target collection time is determined according to the data collection time of each data to be detected, including: determining the collection ranking of each data collection time according to the data collection time of each data to be detected; and selecting the data collection time of the preset collection ranking as the target collection time.
[0066] In one embodiment, the collection ranking of each data collection time is determined according to the data collection time of each data to be detected, including: sorting the data collection time according to the data collection time of each data to be detected and a preset sorting method to obtain a sorting result; and determining the collection ranking of each data collection time according to the sorting result.
[0067] Specifically, if the preset sorting method is to sort from small to large, then according to the data collection time of each data to be detected, the data to be detected are sorted in the order of data collection time from small to large, and the sorting result is obtained to determine the collection ranking of each data collection time. If the preset sorting method is to sort from large to small, then according to the data collection time of each data to be detected, the data to be detected are sorted in the order of data collection time from large to small, and the sorting result is obtained to determine the collection ranking of each data collection time.
[0068] In one embodiment, selecting the data collection time of a preset collection ranking as the target collection time includes: selecting the data collection time of a preset collection ranking as the target collection time of the data to be detected according to the sorting method.
[0069] Specifically, if the sorting method is from small to large, the data collection time of the last collection ranking is selected as the target collection time of the data to be detected. If the sorting method is from large to small, the data collection time of the first collection ranking is selected as the target collection time of the data to be detected.
[0070] In a specific implementation, the target collection time of the data to be detected can be determined by the following formula (1-1):
[0071] (1-1)
[0072] Among them, Δt represents the target acquisition time, t n Characterize the data collection time, M δtj The characterization data acquisition time is δt j The data to be tested, M sum Represents the total amount of data to be detected.
[0073] In this embodiment, the collection ranking of each data collection time is determined according to the data collection time of each data to be detected, and the data collection time of the preset collection ranking is selected as the target collection time. This embodiment can more accurately determine the target collection time.
[0074] In one embodiment, data synchronization performance of the data to be detected is determined based on the target collection time and the standard collection time, including: determining a data synchronization score of the data to be detected based on the degree of difference between the target collection time and the standard collection time; determining the data synchronization performance of the data to be detected based on the data synchronization score of the data to be detected.
[0075] In one embodiment, the data synchronization score of the data to be detected is determined according to the degree of difference between the target collection time and the standard collection time, including: if the target collection time is greater than or equal to the standard collection time, the data synchronization score of the data to be detected is determined to be a first score value; if the target collection time is less than the standard collection time, the data synchronization score of the data to be detected is determined to be a second score value; wherein the second score value is greater than the first score value.
[0076] Specifically, if the target collection time is greater than or equal to the standard collection time, the data synchronization score of the data to be detected is determined to be zero; if the target collection time is less than the standard collection time, the data synchronization score of the data to be detected is determined to be full marks.
[0077] In this embodiment, the data synchronization score of the data to be detected is determined according to the difference between the target acquisition time and the standard acquisition time, and the data synchronization performance of the data to be detected is determined according to the data synchronization score of the data to be detected. This embodiment can achieve more accurate data synchronization performance.
[0078] In one embodiment, this embodiment provides an optional method for data synchronization performance detection, and takes the method applied to a server as an example for explanation. As shown in FIG3 , the method includes the following steps:
[0079] Step 301, obtaining the data collection time of each data to be detected.
[0080] Step 302 , sorting the data collection time according to the data collection time of each to-be-detected data and a preset sorting method to obtain a sorting result.
[0081] Step 303: Determine the collection rank of each data collection duration according to the sorting result.
[0082] Step 304 , according to the sorting method, select the data collection duration of the preset collection ranking as the target collection duration.
[0083] Step 305: Determine the data synchronization score of the data to be detected according to the difference between the target collection time and the standard collection time.
[0084] Step 306: Determine the data synchronization performance of the data to be detected according to the data synchronization score of the data to be detected.
[0085] It should be noted that if the data to be detected is daily statistical electricity data or substation line loss data, the computing performance of the data to be detected can also be determined according to the above method, including: obtaining the data to be detected in the most recent cycle; for each data to be detected, determining the difference between the calculation start time and the calculation end time of the data to be detected, and using the difference as the data calculation time of the data to be detected; sorting the data to be detected in order of data calculation time from small to large to obtain a sorting result; selecting the data calculation time of the data to be detected with a preset ranking as the target calculation time; if the target calculation time is greater than or equal to the standard calculation time, determining that the computing performance score of the data to be detected is zero; if the target calculation time is less than the standard calculation time, determining that the computing performance score of the data to be detected is full marks.
[0086] It should be noted that if the data to be detected is daily frozen table code data, special transformer power curve data or low-voltage key user voltage and current curve data, the data acquisition performance of the data to be detected can also be determined according to the above method, including: obtaining the data to be detected in the most recent cycle; for each data to be detected, determining the difference between the acquisition start time and the acquisition end time of the data to be detected, and using the difference as the data acquisition duration of the data to be detected; sorting the data to be detected in order of data acquisition duration from small to large to obtain a sorting result; selecting the data acquisition duration of the data to be detected with a preset ranking as the target acquisition duration; if the target acquisition duration is greater than or equal to the standard acquisition duration, determining that the acquisition performance score of the data to be detected is zero; if the target calculation duration is less than the standard acquisition duration, determining that the acquisition performance score of the data to be detected is full marks.
[0087] It should be understood that, although the various steps in the flowcharts involved in the above-mentioned embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps does not have a strict order restriction, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above-mentioned embodiments can include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.
[0088] Based on the same inventive concept, the embodiment of the present application also provides a data synchronization performance detection device for implementing the data synchronization performance detection method involved above. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme recorded in the above method, so the specific limitations in one or more data synchronization performance detection device embodiments provided below can refer to the limitations on the data synchronization performance detection method above, and will not be repeated here.
[0089] In an exemplary embodiment, as shown in FIG4 , a data synchronization performance detection device is provided, comprising: a duration acquisition module 10, a duration determination module 11 and a performance determination module 12, wherein:
[0090] The duration acquisition module 10 is used to acquire the data acquisition duration of each data to be detected;
[0091] The duration determination module 11 is used to determine the target collection duration according to the data collection duration of each data to be detected;
[0092] The performance determination module 12 is used to determine the data synchronization performance of the data to be detected according to the target collection time and the preset standard collection time; wherein the data to be detected includes: at least one of the meter code data, power data and voltage data of the electricity user.
[0093] In one embodiment, the duration determination module 11 in FIG. 4 is further used to determine the collection ranking of each data collection duration according to the data collection duration of each data to be detected; and select the data collection duration of the preset collection ranking as the target collection duration.
[0094] In one embodiment, the duration determination module 11 in FIG. 4 is also used to sort the data collection duration according to the data collection duration of each data to be detected and a preset sorting method to obtain a sorting result; and determine the collection ranking of each data collection duration according to the sorting result.
[0095] In one embodiment, the duration determination module 11 in FIG. 4 is further configured to select the data collection duration of a preset collection ranking according to the sorting method as the target collection duration of the data to be detected.
[0096] In one embodiment, the performance determination module 12 in Figure 4 is also used to determine the data synchronization score of the data to be detected based on the difference between the target collection time and the standard collection time; and determine the data synchronization performance of the data to be detected based on the data synchronization score of the data to be detected.
[0097] In one embodiment, the performance determination module 12 in Figure 4 is also used to determine that the data synchronization score of the data to be detected is a first score value if the target collection time is greater than or equal to the standard collection time; if the target collection time is less than the standard collection time, the data synchronization score of the data to be detected is determined to be a second score value; wherein the second score value is greater than the first score value.
[0098] Each module in the above-mentioned data synchronization performance detection device can be implemented in whole or in part by software, hardware and their combination. Each of the above-mentioned modules can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory of the computer device in the form of software, so that the processor can call and execute the operations corresponding to each of the above modules.
[0099] In an exemplary embodiment, a computer device is provided, which may be a server, and its internal structure diagram may be shown in FIG5. The computer device includes a processor, a memory, an input / output interface (Input / Output, referred to as I / O) and a communication interface. The processor, the memory and the input / output interface are connected via a system bus, and the communication interface is connected to the system bus via the input / output interface. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store data. The input / output interface of the computer device is used to exchange information between the processor and an external device. The communication interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a data synchronization performance detection method is implemented.
[0100] In an exemplary embodiment, a computer device is provided, which may be a terminal, and its internal structure diagram may be shown in FIG6. The computer device includes a processor, a memory, an input / output interface, a communication interface, a display unit, and an input device. The processor, the memory, and the input / output interface are connected via a system bus, and the communication interface, the display unit, and the input device are connected to the system bus via the input / output interface. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The input / output interface of the computer device is used to exchange information between the processor and an external device. The communication interface of the computer device is used to communicate with an external terminal in a wired or wireless manner, and the wireless manner may be implemented through WIFI, a mobile cellular network, NFC (near field communication) or other technologies. When the computer program is executed by the processor, a data synchronization performance detection method is implemented. The display unit of the computer device is used to form a visually visible picture, which may be a display screen, a projection device, or a virtual reality imaging device. The display screen can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer device can be a touch layer covering the display screen, or a button, trackball or touchpad set on the computer device shell, or an external keyboard, touchpad or mouse.
[0101] Those skilled in the art will understand that the structures shown in FIGS. 5 and 6 are merely block diagrams of partial structures related to the scheme of the present application, and do not constitute a limitation on the computer device to which the scheme of the present application is applied. The specific computer device may include more or fewer components than those shown in the figures, or combine certain components, or have a different arrangement of components.
[0102] In an exemplary embodiment, a computer device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and when the processor executes the computer program, the following steps are implemented:
[0103] Obtain the data collection time of each data to be detected;
[0104] Determine the target collection time according to the data collection time of each data to be detected;
[0105] Determine the data synchronization performance of the data to be detected based on the target collection time and the preset standard collection time;
[0106] The data to be detected includes at least one of meter code data, power data and voltage data of the electricity user.
[0107] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:
[0108] According to the data collection time of each data to be detected, the collection ranking of each data collection time is determined;
[0109] Select the data collection duration of the preset collection ranking as the target collection duration.
[0110] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:
[0111] According to the data collection time of each data to be detected and the preset sorting method, the data collection time is sorted to obtain a sorting result;
[0112] According to the sorting results, the collection ranking of each data collection duration is determined.
[0113] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:
[0114] According to the sorting method, the data collection time of the preset collection ranking is selected as the target collection time of the data to be tested.
[0115] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:
[0116] Determine the data synchronization score of the data to be detected according to the difference between the target collection time and the standard collection time;
[0117] The data synchronization performance of the data to be detected is determined according to the data synchronization score of the data to be detected.
[0118] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:
[0119] If the target collection time is greater than or equal to the standard collection time, the data synchronization score of the to-be-detected data is determined to be a first score value;
[0120] If the target collection time is less than the standard collection time, determining the data synchronization score of the to-be-detected data to be a second score value;
[0121] The second score value is greater than the first score value.
[0122] In one embodiment, a computer readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented:
[0123] Obtain the data collection time of each data to be detected;
[0124] Determine the target collection time according to the data collection time of each data to be detected;
[0125] Determine the data synchronization performance of the data to be detected based on the target collection time and the preset standard collection time;
[0126] The data to be detected includes at least one of meter code data, power data and voltage data of the electricity user.
[0127] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0128] According to the data collection time of each data to be detected, the collection ranking of each data collection time is determined;
[0129] Select the data collection duration of the preset collection ranking as the target collection duration.
[0130] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0131] According to the data collection time of each data to be detected and the preset sorting method, the data collection time is sorted to obtain a sorting result;
[0132] According to the sorting results, the collection ranking of each data collection duration is determined.
[0133] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0134] According to the sorting method, the data collection time of the preset collection ranking is selected as the target collection time of the data to be tested.
[0135] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0136] Determine the data synchronization score of the data to be detected according to the difference between the target collection time and the standard collection time;
[0137] The data synchronization performance of the data to be detected is determined according to the data synchronization score of the data to be detected.
[0138] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0139] If the target collection time is greater than or equal to the standard collection time, the data synchronization score of the to-be-detected data is determined to be a first score value;
[0140] If the target collection time is less than the standard collection time, determining the data synchronization score of the to-be-detected data to be a second score value;
[0141] The second score value is greater than the first score value.
[0142] In one embodiment, a computer program product is provided, comprising a computer program, which, when executed by a processor, implements the following steps:
[0143] Obtain the data collection time of each data to be detected;
[0144] Determine the target collection time according to the data collection time of each data to be detected;
[0145] Determine the data synchronization performance of the data to be detected based on the target collection time and the preset standard collection time;
[0146] The data to be detected includes at least one of meter code data, power data and voltage data of the electricity user.
[0147] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0148] According to the data collection time of each data to be detected, the collection ranking of each data collection time is determined;
[0149] Select the data collection duration of the preset collection ranking as the target collection duration.
[0150] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0151] According to the data collection time of each data to be detected and the preset sorting method, the data collection time is sorted to obtain a sorting result;
[0152] According to the sorting results, the collection ranking of each data collection duration is determined.
[0153] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0154] According to the sorting method, the data collection time of the preset collection ranking is selected as the target collection time of the data to be tested.
[0155] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0156] Determine the data synchronization score of the data to be detected according to the difference between the target collection time and the standard collection time;
[0157] The data synchronization performance of the data to be detected is determined according to the data synchronization score of the data to be detected.
[0158] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0159] If the target collection time is greater than or equal to the standard collection time, the data synchronization score of the to-be-detected data is determined to be a first score value;
[0160] If the target collection time is less than the standard collection time, determining the data synchronization score of the to-be-detected data to be a second score value;
[0161] The second score value is greater than the first score value.
[0162] It should be noted that the data involved in this application (including but not limited to data used for analysis, stored data, displayed data, etc.) are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with relevant regulations.
[0163] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in this application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetoresistive random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, etc., but are not limited to this.
[0164] The technical features of the above embodiments may be arbitrarily combined. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0165] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.
Claims
1. A data synchronization performance detection method, characterized in that: The method comprises: Obtain the data collection time of each data to be detected; Determine the target collection time according to the data collection time of each data to be detected; Determining data synchronization performance of the data to be detected according to the target collection time and a preset standard collection time; The data to be detected includes at least one of meter code data, power data and voltage data of the electricity user.
2. The method according to claim 1, characterized in that Determining the target collection time according to the data collection time of each to-be-detected data includes: According to the data collection time of each data to be detected, the collection ranking of each data collection time is determined; Select the data collection duration of the preset collection ranking as the target collection duration.
3. The method according to claim 2, characterized in that Determining the collection ranking of each data collection time according to the data collection time of each data to be detected includes: According to the data collection time of each data to be detected and a preset sorting method, the data collection time is sorted to obtain a sorting result; According to the sorting result, the collection rank of each data collection duration is determined.
4. The method according to claim 3, characterized in that The step of selecting the data collection duration of the preset collection ranking as the target collection duration includes: According to the sorting method, the data collection time of the preset collection ranking is selected as the target collection time of the data to be tested.
5. The method according to claim 1, characterized in that The step of determining the data synchronization performance of the data to be detected according to the target collection time and the standard collection time includes: Determining a data synchronization score of the data to be detected according to the degree of difference between the target collection time and the standard collection time; The data synchronization performance of the data to be detected is determined according to the data synchronization score of the data to be detected.
6. The method according to claim 5, characterized in that Determining the data synchronization score of the data to be detected according to the difference between the target collection time and the standard collection time includes: If the target collection time is greater than or equal to the standard collection time, determining the data synchronization score of the to-be-detected data to be a first score value; If the target collection time is shorter than the standard collection time, determining the data synchronization score of the to-be-detected data to be a second score value; The second score value is greater than the first score value.
7. A data synchronization performance detection device, characterized in that: The device comprises: The duration acquisition module is used to obtain the data acquisition duration of each data to be detected; A duration determination module is used to determine a target collection duration according to the data collection duration of each data to be detected; A performance determination module is used to determine the data synchronization performance of the data to be detected based on the target collection time and the preset standard collection time; wherein the data to be detected includes: at least one of the meter code data, power data and voltage data of the electricity user.
8. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 6 are implemented.
9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.
10. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.