Construct LoopManualIntegersIncrements

Performance Diagrams

Construct LoopManualIntegersIncrements 0040000000400000008000000080000000120000000120000000160000000160000000200000000200000000240000000240000000280000000280000000320000000320000000360000000360000000CPython 3.12Nuitka (main)Nuitka (develop)Nuitka (factory)38414988388.11538461538461257.0CPython 3.12232927400240.03846153846155354.278181519161Nuitka (main)232927400391.96153846153845354.278181519161Nuitka (develop)232927400543.8846153846154354.278181519161Nuitka (factory)Construct LoopManualIntegersIncrementsTicks Construct LoopManualIntegersIncrements 002000000020000000400000004000000060000000600000008000000080000000100000000100000000120000000120000000140000000140000000160000000160000000180000000180000000200000000200000000220000000220000000240000000240000000260000000260000000280000000280000000300000000300000000CPython 3.11Nuitka (main)Nuitka (develop)Nuitka (factory)31235342788.11538461538461257.00000000000006CPython 3.11179567200240.03846153846155362.0525357505707Nuitka (main)179567200391.96153846153845362.0525357505707Nuitka (develop)179567200543.8846153846154362.0525357505707Nuitka (factory)Construct LoopManualIntegersIncrementsTicks Construct LoopManualIntegersIncrements 00100000000100000000200000000200000000300000000300000000400000000400000000CPython 3.10Nuitka (main)Nuitka (develop)Nuitka (factory)49966669188.11538461538461257.0CPython 3.10177759100240.03846153846155416.2027637491188Nuitka (main)177759100391.96153846153845416.2027637491188Nuitka (develop)177759100543.8846153846154416.2027637491188Nuitka (factory)Construct LoopManualIntegersIncrementsTicks Construct LoopManualIntegersIncrements 0040000000400000008000000080000000120000000120000000160000000160000000200000000200000000240000000240000000280000000280000000320000000320000000CPython 2.7Nuitka (main)Nuitka (develop)Nuitka (factory)33363970688.11538461538461257.0CPython 2.752918416240.03846153846155464.92054512863325Nuitka (main)52918416391.96153846153845464.92054512863325Nuitka (develop)52918416543.8846153846154464.92054512863325Nuitka (factory)Construct LoopManualIntegersIncrementsTicks

Source Code with Construct

            i = i + 1
            # NUITKA_ILONG_CLONG_VALID

        # The flag NUITKA_INT_OBJECT_VALID is not set, need to create the object
        # pointer and return it.
        return i


for x in itertools.repeat(None, 50):
    # construct_begin
    calledRepeatedly(True)
    # construct_alternative



print("OK.")

#     Python test originally created or extracted from other peoples work. The
#     parts from me are licensed as below. It is at least Free Software where
#     it's copied from other people. In these cases, that will normally be
#     indicated.
#
#     Licensed under the Apache License, Version 2.0 (the "License");
#     you may not use this file except in compliance with the License.
#     You may obtain a copy of the License at
#
#         http://www.apache.org/licenses/LICENSE-2.0
#
#     Unless required by applicable law or agreed to in writing, software
#     distributed under the License is distributed on an "AS IS" BASIS,
#     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
#     See the License for the specific language governing permissions and
#     limitations under the License.

Source Code without Construct

            i = i + 1
            # NUITKA_ILONG_CLONG_VALID

        # The flag NUITKA_INT_OBJECT_VALID is not set, need to create the object
        # pointer and return it.
        return i


for x in itertools.repeat(None, 50):
    # construct_begin

    # construct_alternative
    calledRepeatedly(False)
    # construct_end

print("OK.")

#     Python test originally created or extracted from other peoples work. The
#     parts from me are licensed as below. It is at least Free Software where
#     it's copied from other people. In these cases, that will normally be
#     indicated.
#
#     Licensed under the Apache License, Version 2.0 (the "License");
#     you may not use this file except in compliance with the License.
#     You may obtain a copy of the License at
#
#         http://www.apache.org/licenses/LICENSE-2.0
#
#     Unless required by applicable law or agreed to in writing, software
#     distributed under the License is distributed on an "AS IS" BASIS,
#     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
#     See the License for the specific language governing permissions and
#     limitations under the License.