Construct LocalVariableAccess

Performance Diagrams

Construct LocalVariableAccess 002000002000004000004000006000006000008000008000001000000100000012000001200000140000014000001600000160000018000001800000CPython 3.12Nuitka (main)Nuitka (develop)Nuitka (factory)199875089.78846153846155257.0CPython 3.12150000244.59615384615387485.57013999134074Nuitka (main)149913399.4038461538462485.5808962332227Nuitka (develop)149913554.2115384615385485.5808962332227Nuitka (factory)Construct LocalVariableAccessTicks Construct LocalVariableAccess 0020000020000040000040000060000060000080000080000010000001000000120000012000001400000140000016000001600000CPython 3.11Nuitka (main)Nuitka (develop)Nuitka (factory)179875089.78846153846155257.0CPython 3.11100088244.59615384615387490.36512214679Nuitka (main)99999399.4038461538462490.37734912065Nuitka (develop)99999554.2115384615385490.37734912065Nuitka (factory)Construct LocalVariableAccessTicks Construct LocalVariableAccess 00200000200000400000400000600000600000800000800000100000010000001200000120000014000001400000160000016000001800000180000020000002000000220000022000002400000240000026000002600000CPython 3.10Nuitka (main)Nuitka (develop)Nuitka (factory)279831189.78846153846155257.0CPython 3.10100000244.59615384615387495.28450825405866Nuitka (main)100001399.4038461538462495.28441994529504Nuitka (develop)100001554.2115384615385495.28441994529504Nuitka (factory)Construct LocalVariableAccessTicks Construct LocalVariableAccess 0040000040000080000080000012000001200000160000016000002000000200000024000002400000280000028000003200000320000036000003600000CPython 2.7Nuitka (main)Nuitka (develop)Nuitka (factory)384884089.78846153846155257.0CPython 2.70244.59615384615387504.11538461538464Nuitka (main)3399.4038461538462504.11519199990727Nuitka (develop)3554.2115384615385504.11519199990727Nuitka (factory)Construct LocalVariableAccessTicks

Source Code with Construct

    return local_value1 + local_value2


for x in itertools.repeat(None, 50000):
    # 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

    return local_value1 + local_value2


for x in itertools.repeat(None, 50000):
    # 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.