Construct LoopManualIntegersIncrements

Performance Diagrams

Construct LoopManualIntegersIncrements 00100000000100000000200000000200000000300000000300000000400000000400000000CPython 3.12Nuitka (main)Nuitka (develop)Nuitka (factory)41575329688.11538461538461257.0CPython 3.12231286450240.03846153846155366.64337754300556Nuitka (main)231286450391.96153846153845366.64337754300556Nuitka (develop)234286500543.8846153846154364.8602082530731Nuitka (factory)Construct LoopManualIntegersIncrementsTicks Construct LoopManualIntegersIncrements 0040000000400000008000000080000000120000000120000000160000000160000000200000000200000000240000000240000000280000000280000000320000000320000000CPython 3.11Nuitka (main)Nuitka (develop)Nuitka (factory)32119171488.11538461538461257.0CPython 3.11167797513240.03846153846155375.01695163868584Nuitka (main)167797600391.96153846153845375.0168847034645Nuitka (develop)170797750543.8846153846154372.70865821803955Nuitka (factory)Construct LoopManualIntegersIncrementsTicks Construct LoopManualIntegersIncrements 00100000000100000000200000000200000000300000000300000000400000000400000000CPython 3.10Nuitka (main)Nuitka (develop)Nuitka (factory)47575522188.11538461538461257.0CPython 3.10178810100240.03846153846155411.2383657531673Nuitka (main)178810250391.96153846153845411.2382878406063Nuitka (develop)181810300543.8846153846154409.6800106491188Nuitka (factory)Construct LoopManualIntegersIncrementsTicks Construct LoopManualIntegersIncrements 0040000000400000008000000080000000120000000120000000160000000160000000200000000200000000240000000240000000280000000280000000320000000320000000CPython 2.7Nuitka (main)Nuitka (develop)Nuitka (factory)32260986688.11538461538461257.0CPython 2.751764249240.03846153846155464.4645752351113Nuitka (main)51764249391.96153846153845464.4645752351113Nuitka (develop)51764249543.8846153846154464.4645752351113Nuitka (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.