A computer-implemented method for cycle time testing

By predicting the loop time of PLC program code increments using a pre-trained language model, the problem of time-consuming and costly testing in existing technologies is solved, enabling efficient and low-cost loop time testing and optimization, and improving testing efficiency and accuracy.

CN123187129APending Publication Date: 2026-11-27SIEMENS AG
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202580030204.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Priority Date
2024-04-25
Filing Date
2025-04-08
Publication Date
2026-11-27

AI Technical Summary

Technical Problem

In existing technologies, testing the cycle time of a PLC system is time-consuming and costly, especially when the hardware is frequently adjusted, making it difficult to efficiently test the cycle time to meet time requirements.

Method used

By using pre-trained language models to predict the incremental cycle time of PLC program code, actual hardware testing can be skipped. The prediction results are used for cycle time analysis and optimization, and automated management is achieved by combining them with continuous integration pipelines.

Benefits of technology

It enables efficient and low-cost cycle time testing and optimization in PLC systems, reduces hardware testing steps, and improves testing efficiency and accuracy.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123187129A_ABST
    Figure CN123187129A_ABST
Patent Text Reader

Abstract

The invention relates to a computer-implemented method for cycle time testing, characterized in that the cycle time of a developed software code increment, in particular a PLC program code increment, intended to be implemented on a first hardware, in particular a so-called "programmable logic controller", is tested at least once; wherein the first hardware is the target hardware, in particular the PLC, for which the developed software code increment is intended; the test is carried out without the developed software code increment being implemented on any hardware, in particular not on the first hardware. It further relates to a device for carrying out the method and to a computer program product.
Need to check novelty before this filing date? Find Prior Art

Description

[0001] The present invention relates to a computer-implemented method of the preamble of claim 1, an apparatus for performing the computer-implemented method of the preamble of claim 11, and a computer program product of the preamble of claim 12.

[0002] As is well known in the field of software development, the current software development process is typically carried out in a team of developers, with software built using an iterative approach. This involves development in (particularly small) steps, and the development involves an iterative approach in which the team delivers a new software increment in each iteration.

[0003] Each increment represents a small but functional unit of software that is independently testable and deployable, delivering real value to the user.

[0004] Software increments are often associated with agile development methodologies such as Scrum or Kanban, where development occurs in short iterations. Version control systems (like Git) typically facilitate the management and tracking of these increments because changes can be organized into commits, and developers within the team can work on different features independently. For this purpose, new software increments are checked into Git.

[0005] It is also known that if software development is more hardware-oriented, especially in the context of PLCs (Programmable Logic Controllers), some aspects can be modified or emphasized, such as the importance of continuously adapting software development to hardware requirements. Because PLC systems are often tightly bound to specific hardware, software increments may need to be tuned and tested more frequently to ensure they interact correctly with the hardware.

[0006] One such requirement is what's known as cycle time. Cycle time is essential in hardware-oriented software development, especially in the context of PLC (Programmable Logic Controller) programming. In hardware-oriented software development, cycle time refers to the time it takes for the PLC to complete a full cycle of scanning, processing inputs, executing program logic, and updating outputs. In industrial automation applications (where PLCs are commonly used), cycle time is a critical parameter because it directly affects the responsiveness and efficiency of the control system. Therefore, cycle time is a key consideration in hardware-oriented software development, especially for PLCs. Consequently, cycle time must be tested.

[0007] For this type of testing, it is known that, based on the aforementioned process of continuous integration for incremental software development, a so-called (Continuous Integration) CI pipeline is utilized. A CI pipeline refers to the automated process of integrating code changes into a shared repository, building the software, running tests, compiling it, and deploying it to the target environment. After deployment, the cycle time must be manually tested on hardware to check if the time requirements are met, i.e., whether the cycle time is below the maximum acceptable cycle time.

[0008] This is a manual step typically performed once per increment. If the test fails, the software must be changed. This requires identifying the cause of the timeline deviation in the code, or identifying a part of the code that can be improved in a way that keeps the timeline met. This is also a manual task involving code review and discussion. Therefore, these tests are time-consuming and costly.

[0009] Based on known solutions to this problem, the worst-case cycle time is automatically generated and compared to the maximum acceptance time. For this purpose, proprietary tools are used, which work only for very specific target hardware. While the solution is faster due to limitations in the proprietary hardware capable of automation and due to automation itself, those tools involve very expensive hardware models.

[0010] Therefore, the problem upon which this invention is based is to provide a solution that at least partially overcomes the shortcomings of the prior art, and in particular, to provide a technical solution for achieving an efficient and cost-effective way to test cycle time for given hardware (especially PLC).

[0011] This problem is solved by a computer-implemented method according to the preamble of claim 1, by means of the features of the preamble, by means of means for implementing the computer-implemented method according to the preamble of claim 11, and by means of a computer program product according to the preamble of claim 12.

[0012] According to the present invention, a computer-implemented method for cycle time testing is characterized in that the cycle time of a developed software code increment intended to be implemented on first hardware, particularly a so-called "programmable logic controller," and the developed software code increment particularly a PLC program code increment; wherein the first hardware is the target hardware for which the developed software code increment is intended, particularly the PLC; and the testing is performed when the developed software code increment is not implemented on any hardware, particularly not on the first hardware.

[0013] The solution using the present invention can save time because, for at least some increments, hardware testing on the first hardware is skipped, for example, because it is performed at another time and / or on another hardware. The cycle time of the current increment is executed together with the next increment because the source of the relationship between the cycle times of certain code increments (especially code increments with the same signature) makes it possible to select the cycle time and / or predict the cycle time based on the software code increment.

[0014] Furthermore, the present invention relates to an apparatus for performing a computer-implemented method. This apparatus has the advantage of providing the means to perform the method, and thus facilitates the realization of the advantages of the computer-implemented method according to the invention.

[0015] The present invention also relates to a computer program product having a computer program having means for performing the computer-implemented method described above when the computer program is executed on a programmable device.

[0016] For example, computer program products (such as computer programs) can be provided or delivered as storage media (such as memory cards, USB sticks, CD-ROMs, DVDs), or as downloadable files from a server on a network. This can be done, for example, by transmitting corresponding files containing computer program products or computer program tools over a wireless communication network. In particular, control devices (such as industrial control PCs, or programmable logic controllers, or programmable logic controllers (or simply PLCs), or microprocessors for smart cards, etc.) can be considered as program-controlled devices.

[0017] Advantageous embodiments and further improvements of the invention are indicated by the dependent claims.

[0018] According to an advantageous and preferred embodiment of the computer-implemented method of the present invention, the cycle time test is established by using a pre-trained language model to predict the cycle time of the incremental development of the software code at least once.

[0019] By using a pre-trained language model to predict the loop time of the developed software code increment, loop time testing on the hardware testing environment can be skipped, as the predicted loop time can be used instead. This reduces time-consuming steps such as implementing the developed software code increment and measuring loop time. Furthermore, by using a pre-trained language model, a minimum accuracy for predicting loop time is given, which is a good starting point. Because such language models can be improved through further training of the pre-trained model for the purposes of this invention, the accuracy level can be significantly improved.

[0020] If the pre-trained language model is used to construct a cyclic time analysis model, then an embodiment of the method according to the invention, which is particularly suitable for computer implementation for this purpose, is given, wherein the pre-trained language model (in particular initially) is further trained once on at least one second hardware using at least one code snippet (preferably multiple different code snippets), whereby the second hardware is at least functionally identical to the first hardware for which the developed software code increment is intended.

[0021] One advantage of this embodiment (among others) is that further training of the pre-trained language model is based on the second hardware. This means that training is independent of the actual hardware. Therefore, training can occur at another location and at another time. The training time is preferably at least partially in the past, i.e., before any actual software development for the first hardware occurs. Using such a scheme, the prediction level associated with the development for the first hardware is at least partially improved at the start of software development for the first hardware.

[0022] Furthermore, this further training can occur for different hardware models that have the same functionality but, in particular, slightly different hardware architectures. This allows for more flexible predictions regarding other hardware models / types; that is, for the method according to the invention, hardware that is structurally identical or at least most similar can be selected. Moreover, the differences between different hardware models can be used for further training of the model or for analysis regarding possible improvements.

[0023] In a preferred embodiment of the computer-implemented method according to the invention, at least one code segment (preferably multiple different code segments) is constructed by automatically generating software code segments, wherein the software code segments are randomly generated in a manner that they do not necessarily provide meaningful functionality. Using this embodiment, as many segments as possible are generated using specific code, and further training can be based on this code. Furthermore, since the segments are generated randomly, even rare or unusual combinations of segments may be generated, maximizing the benefits of further training from this approach. Another advantage of this approach is that no prior software program code examples are required, as everything is generated from scratch.

[0024] However, if such examples exist, it is advantageous to use them in alternative or supplementary embodiments of the computer-implemented method according to the invention, wherein at least one code snippet (preferably multiple different code snippets) is taken from a repository, whereby the repository is preferably constructed as a database of code snippets intended for cycle-time testing. By using code snippets from the database, one can use snippets known to be used, for example, because they are part of the program example. This can be advantageous because there is a high probability that these snippets will be reused. Therefore, using this scheme alone, training may be good enough to achieve a high level of predictive accuracy, and this level of accuracy will be further improved by combining it with random code snippets.

[0025] According to another embodiment of the computer-implemented method of the present invention, the further training can be enhanced by further steps. These steps include deploying one or more code snippets (preferably a set of different code snippets) on a hardware test environment based on second hardware, and measuring the loop time of at least one software code snippet on the second hardware. A pre-trained language model is then trained using samples constructed from the measured loop times and corresponding software code snippets. By applying these further steps, appropriate training samples are constructed.

[0026] In another embodiment of the computer-implemented method according to the invention, cycle time testing involves several further steps. First, a cycle time analysis model is integrated into a process called "Continuous Integration" or CI pipeline. During each execution of the CI pipeline process, the cycle time analysis model is used to predict the cycle time of the developed software increment. This prediction is made for each developed software code increment.

[0027] Next, the predicted cycle time is compared with a predetermined first requirement (specifically, a maximum cycle time threshold). If the predicted cycle time meets this first requirement, at least a first signal is generated. Conversely, if the predicted cycle time does not meet the first requirement, at least a second signal is generated.

[0028] Depending on whether a first or second signal has been generated, development parameters are set accordingly. This embodiment establishes a foundation for guiding developers, as the signal notification can be used to inform them of possible development steps; further automation steps can be triggered based on the signal notification.

[0029] For example, initial steps for implementing a computer-based method according to the invention can be triggered, wherein the cycle time testing process involves deploying an incremental piece of developed software code on a hardware test environment based on first hardware. The cycle time of the code increment on the first hardware is then measured. The predicted cycle time is compared with the actual cycle time measured on the first hardware. If the two times differ, i.e., a second requirement (such as a maximum difference threshold) is not met, the language model is retrained. To retrain the language model, a new sample consisting of the measured cycle time and the software code is used. Finally, based on the previous steps, the cycle time analysis model is updated and deployed in the CI pipeline process.

[0030] This embodiment enables further improvements to the cyclic timing model, requiring less hardware implementation to test cyclic timing, and allowing the number of cyclic timing predictions to increase with prediction accuracy. Therefore, more time is saved.

[0031] In another embodiment of the computer-implemented method according to the invention, loop time testing involves several steps. First, meaningful fragments of actual software code are constructed. These fragments may include single commands, methods, and / or loops. This is performed as new software code increments and / or code fragments are generated (whether through development or random generation).

[0032] Next, meaningful segments of the actual software code are analyzed in a way that identifies the code sections that consume the most loop time. This analysis helps to pinpoint the code segments that significantly contribute to the total loop time.

[0033] Once the code sections with the highest loop times are identified, they are marked in a way that developers can easily recognize. This automated step allows developers to focus on optimizing or improving the identified code sections to reduce loop times.

[0034] According to another embodiment of the computer-implemented method based on the present invention, the cycle time test involves several further steps.

[0035] First, a signature is built for the code with the highest loop time. This signature is used as a unique identifier for the code segment.

[0036] Next, perform checks on at least one database (such as a code repository) to search for code with signatures similar to the high loop time code. This helps identify other code snippets that may have similar performance issues.

[0037] Once code snippets with the same signature are identified, they are analyzed to determine if their loop times can be improved.

[0038] The analyzed code snippets are then visually presented to the developers, providing them with a clear understanding of the identified code and its potential impact on loop time.

[0039] Furthermore, the integration of the suggested code snippets was automated, and functional tests were run to ensure that the changes did not introduce any new problems.

[0040] Using this embodiment, not only is loop time prediction improved, but the process according to the invention is used to implement guided programming in a way that allows for optimization of the reduced loop time through incremental software code updates.

[0041] Further advantages and details of the invention will be explained using one embodiment of the invention shown in a single accompanying drawing. In doing so, The accompanying drawing shows a schematic flowchart of an embodiment of a computer-implemented method and functional apparatus according to the present invention.

[0042] The embodiments and functions (some of which are presented in the accompanying drawings and some of which are explained only) are preferred embodiments and further improvements of the computer-implemented method and apparatus for carrying out the method according to the invention.

[0043] In the embodiments, the components described in the embodiments represent various features of the invention, which are to be considered independent of each other, which also independently develop the invention, and are therefore to be considered individually or in combinations different from those shown as part of the invention.

[0044] Furthermore, the described embodiments may be supplemented by other features of the invention already described.

[0045] In the accompanying drawings, an embodiment of the computer-implemented method according to the invention is schematically shown as a loop diagram on the left side of the figure. It can be seen that the embodiment of the computer-implemented method according to the invention is performed by seven steps 1…7, which are carried out in an apparatus and involve different functional and structural entities for processing the loop diagram in steps 1…7. These steps and preprocessing (such as initial training of the language model) may be performed in part at different stages and / or at different points in time.

[0046] Such preprocessing steps according to embodiments of the invention—typically occurring before continuous integration of software increments—build a cycle time analysis model to predict the cycle time for each software increment. This preprocessed embodiment according to the invention is also shown as a flowchart on the right side of the figure.

[0047] First, according to an embodiment of the invention, for the purpose of constructing a cyclic time analysis model, a preferred pre-trained language model (such as a so-called "Bidirectional Encoder Representation from Transformer" (BERT) language model) is trained as a preprocessing step PPS1. Therefore, according to the flowchart, the first preprocessing step PPS1 is shown as a state of the preprocessing procedure, each state indicating the start of the training.

[0048] To train a pre-trained language model on various code snippets, preprocessing continues with a second preprocessing step, PPS2, which generates random software code snippets.

[0049] These random software code snippet generation processes can be performed automatically and / or repeatedly. Thus, according to another embodiment of the invention, the software code snippets are randomly generated in a manner that does not provide any meaningful functionality, thereby making the generation less complex. Furthermore, such random generation—and repeated generation—can produce a wider range of code snippets and combinations available for training compared to, for example, using known (i.e., meaningful) code snippets.

[0050] In another embodiment of the invention, the generated set of random software fragments can be combined with each other to construct more complex random software fragments.

[0051] Therefore, in the third preprocessing step PPS3, at least one generated random software code snippet is deployed on a hardware testing environment, whereby the corresponding environment is based on arbitrary hardware, where the arbitrary hardware corresponds to the target hardware for which the software increment is intended. This allows for target hardware loop times to be achieved on different code snippets.

[0052] Then, in the fourth preprocessing step PPS4, the loop time of the corresponding implementation is measured, and in the fifth preprocessing step PPS5, the measured loop time is used as a sample for feedback training using code snippets (separately, combinations of code samples), and the measured loop time is fed back to the pre-trained language model, thereby constructing the (initial) loop time analysis model.

[0053] After repeating (not shown) these five steps for several code snippets and / or combinations of code snippets, the model is then able to predict the cycle time for a given piece of software code. Initially, this rough estimate, which can be achieved based on the model, may differ significantly from the actual cycle time.

[0054] According to another embodiment, a more accurate initial model can be constructed by applying some optional preprocessing steps. Specifically, after measuring the corresponding loop time, the measured loop time can be checked in the seventh preprocessing step PPS7 to see if it is lower than a set threshold. This threshold is set as the maximum allowable threshold for hardware executing one or more code segments and / or as the maximum threshold set for code segment / loop time sample pairs.

[0055] If it falls below a set threshold, preprocessing proceeds to the fifth preprocessing step, PPS5; and if it does not fall below the threshold, an eighth preprocessing step, PPS8, is performed as an optional step. This step analyzes the code snippet and / or combination of code snippets for optimization possibilities, i.e., identifies the parts of the code snippet and / or combination of code snippets that cause the problem, in order to, for example, provide guidance on not using such code, and / or identify code alternatives that achieve the same functionality, which can also be used for guidance, and / or can be automatically replaced by better code. For such purposes, according to another optional step (not shown), the optimal code snippet / loop time pair can be recorded.

[0056] To find the best or at least better alternative code snippets, optimization candidates can be selected as the result of the eighth preprocessing step PPS8 and deployed to that environment, i.e., the preprocessing jumps to the third preprocessing step PPS3. This process is repeated until the loop time is below a threshold and the model is trained using optimized samples of code and loop time.

[0057] By utilizing a more or less accurate initial cycle time analysis model, the post-processing or main process of the computer-implemented method of the present invention—that is, incremental software development for continuous integration—can be implemented.

[0058] This main process begins with Step 1, where a new software increment is finalized in conjunction with the continuous integration software development process. At this stage, as Step 2, the software increment is submitted to one or more functional entities that enable the CI pipeline, which is used in the continuous integration software development process.

[0059] Among other things, this is done to check whether the actual software increment meets the cycle time. Typically, the software increment is then deployed to the hardware test environment, but according to this embodiment, this is not necessary, i.e., it is at least reduced to a minimum. However, sometimes, i.e., at least when the results of the software development cycle are ready for release, such deployment is necessary. Therefore, according to the embodiment shown in the figure, in step 4, the software increment is deployed to the hardware test environment.

[0060] Following this, as step 5, cycle-time hardware testing is performed on the target hardware and / or at least on the hardware corresponding to the function.

[0061] According to an embodiment, during this hardware testing, the testing portion can be performed in a preprocessing-based hardware testing manner, meaning that steps from the third preprocessing step PPS3 to the sixth preprocessing step PPS6, along with at least the seventh step PPS7 and optionally the eighth step PPS8, can be run in at least one loop. This ensures that the loop-time analysis model is retrained based on the actual loop time, and the model updated in this way is deployed in the main process. This is indicated by the thick arrow above.

[0062] If the actual software increment is not intended to be deployed on a hardware test environment, the main process continues directly from step 3 to estimate the loop time.

[0063] For this purpose, the cycle time analysis model (e.g., based on the initial training preprocessing embodiment of the present invention described above) is integrated into the CI pipeline—illustratively indicated by the thick arrow below—in such a way that the cycle time is estimated based on the cycle time (1, 2, 3, 6) during each execution of the continuous integration pipeline, and then in step 6.

[0064] This estimate is checked against the requirement (the upper limit of the PLC's cycle time), and if the requirement is met, the stage is marked as successful. Development then continues with step 7 until a new increment is ready, allowing the main process cycle to continue with step 1.

[0065] If the cycle time estimate does not match the requirement, resulting in an estimated cycle time that is higher than the requirement, then the stage is marked as unsuccessful.

[0066] In another embodiment, the estimated time is compared with the actual loop time measured on the actual hardware (particularly later). This occurs during steps 4 through 6—and can occur in part as described above according to preprocessing steps 3 through 6 (PPS4 through PPS6) along with step 7 (PPS7) and optionally step 8 (PPS8). If the two times differ (using a predefined threshold, such as a maximum threshold set for the target hardware), the language model is retrained using a new sample consisting of the measured loop time and the software. By doing so, the loop time analysis model improves over time, improving each time a new hardware test is performed.

[0067] Over time, cycle time analysis tools will improve, and predictions will become more accurate. When they are accurate enough, more and more development cycles can exist without having to perform cycle time measurements on actual hardware 1, 2, 3, 6, 7.

[0068] However, the present invention is not limited to what has been drawn or discussed to date. For example, in another embodiment of the invention, the analysis tool in step 6 is also able to predict the loop time of the code increment segment submitted in step 2. Therefore, each meaningful segment of the actual software can be analyzed individually. A meaningful segment can be a single command, method, or loop. By doing so, the code section consuming the most loop time can be identified. This provides information about which part of the code is most important when loop time needs improvement.

[0069] In another embodiment of the invention, improvements made after a loop time requirement has not been met can now be automatically recorded using the loop time of the code increment and / or the segment of the code increment along with changes in the code.

[0070] According to another embodiment of the invention, the analysis tool in step 6 crawls existing code repositories and examines similar code that is causing high loop times. This can be done, for example, by looking for functions with the same signature. Those code snippets are then analyzed for improved loop times, and this is provided to developers as suggestions.

[0071] Therefore, compared to state-of-the-art processes, during the code change processes 1…7 according to the invention, it is clear whether the changes have the desired effect on the timeline. Furthermore, the code changes are recorded, making it clear why a certain code change was made.

[0072] According to another embodiment of the invention, it is also possible that the automated integration and / or automated execution of the functional testing phase of those code segments is one possible implementation.

[0073] A further advantage of the present invention is that those cycle time analysis models can be used to analyze different hardware, i.e., instead of having a separate cycle time analysis model trained on a single hardware variant, cycle time analysis models can be trained for different hardware, so that when cycle time is tested by prediction according to the present invention, it can be checked whether the software increment has different effects on, for example, different versions of the target hardware, or the tool in step 6 can be applied to different target hardware without purchasing and / or installing another cycle time analysis model.

[0074] This invention provides at least good and (especially after further training) accurate cycle time prediction.

[0075] Individuals with male, female, or other gender identities are included in the term, independent of grammatical usage.

Claims

1. A computer-implemented method for cycle time testing, characterized in that, The cycle time of the developed software code increment intended to be implemented on the first hardware, particularly the so-called "programmable logic controller", and the developed software code increment, particularly the PLC program code increment, is tested at least once. The first hardware is the target hardware for which the developed software code increment is intended, particularly the PLC; The test was conducted without the developed software code increment being implemented on any hardware, particularly not on the first hardware.

2. The computer-implemented method according to claim 1, characterized in that, The cycle time test is established by using a pre-trained language model to predict the cycle time of the incremental code of the developed software at least once.

3. The computer-implemented method according to claim 2, characterized in that, The pre-trained language model is used to construct a loop time analysis model, wherein the pre-trained language model is further trained once on at least one second hardware, specifically using at least one code snippet, preferably multiple different code snippets, whereby the second hardware is at least functionally identical to the first hardware to which the developed software code increment is intended.

4. The computer-implemented method according to claim 3, characterized in that, At least one code snippet, preferably multiple different code snippets, is constructed by automatically generating software code snippets, wherein the software code snippets are randomly generated in a manner in which they do not necessarily provide meaningful functionality.

5. The computer-implemented method according to claim 3, characterized in that, At least one code snippet, preferably multiple different code snippets, is taken from a repository, which is preferably constructed as a database of code snippets intended for use in the cycle time test.

6. The computer-implemented method according to any one of the preceding two claims, characterized in that, The further training includes the following steps: a) Deploy at least one of the code segments, preferably the plurality of different code segments, on a hardware testing environment based on the second hardware; b) Measure the loop time of at least one of the software code segments on the second hardware; c) Train the pre-trained language model using at least one sample constructed from the measured loop time and the corresponding software code snippet.

7. The computer-implemented method according to any one of claims 3 to 6, characterized in that, The cycle time test includes at least the following steps: a) Integrate the cycle time analysis model into the so-called "continuous integration" CI pipeline process; b) During each execution of the CI pipeline process, for example for each developed software code increment in the developed software code increment, the cycle time of the developed software increment is predicted based on the cycle time analysis model. c) Compare the predicted cycle time with a predetermined first requirement, in particular with a first value set as a maximum cycle time threshold; d) If the predicted cycle time meets the first requirement, then at least a first signal is generated; e) If the predicted cycle time does not meet the first requirement, then generate at least a second signal; f) Set development parameters based on whether the first signal or the second signal has been generated.

8. The computer-implemented method according to the preceding claim, characterized in that, The cycle time test includes the following steps: a) Deploy the incremental development of the software code on a hardware testing environment based on the first hardware; b) Measure the cycle time of the developed code increment on the first hardware; c) Compare the predicted cycle time with the actual cycle time measured on the first hardware; d) If the two times are different, the language model is retrained using a second requirement, which is, for example, a second value set as the maximum difference threshold; e) Retrain the language model using a new sample consisting of the measured loop time and the software code; f) Based on the preceding steps a) to e), update the cycle time analysis model and deploy the update during the CI pipeline process.

9. The computer-implemented method according to any one of the preceding claims, characterized in that, The cycle time test includes the following steps: a) When new developed software code increments and / or code snippets are generated, construct meaningful segments of actual software code, such as the developed software code increments and / or the at least one randomly generated code snippet, such as a single command, method, and / or loop; b) Analyze the meaningful segments of the actual software code in a manner that identifies the code sections that consume the most loop time; c) Mark the identified code in a way that allows the developer to recognize the code with the highest loop time.

10. The computer-implemented method according to the preceding claim, characterized in that, The cycle time test includes the following steps: a) Build a signature for the code with the highest cycle time; b) Examine code with at least similar signatures in at least one database, particularly code repositories; c) Identify code snippets with the same signature as high-cycle-time code; d) Analyze the identified code snippets to improve loop timing; e) Based on the analyzed code snippets, visually present at least one identified code snippet to the developer; f) Integrate the suggested code snippets automatically and run functional tests.

11. An apparatus for performing a computer-implemented method according to any one of the preceding claims.

12. A computer program product comprising a computer program having means for performing a computer-implemented method according to any one of claims 1 to 7 when the computer program is executed on a program-controlled device.