Construct LocalVariableAccess

Performance Diagrams

Construct LocalVariableAccess 002000002000004000004000006000006000008000008000001000000100000012000001200000140000014000001600000160000018000001800000CPython 3.12Nuitka (main)Nuitka (develop)Nuitka (factory)199870889.78846153846155257.0CPython 3.12149958244.59615384615387485.57494306706747Nuitka (main)150000399.4038461538462485.56975028945624Nuitka (develop)150000554.2115384615385485.56975028945624Nuitka (factory)Construct LocalVariableAccessTicks Construct LocalVariableAccess 0020000020000040000040000060000060000080000080000010000001000000120000012000001400000140000016000001600000CPython 3.11Nuitka (main)Nuitka (develop)Nuitka (factory)179875089.78846153846155257.0CPython 3.11100000244.59615384615387490.37721173892123Nuitka (main)100000399.4038461538462490.37721173892123Nuitka (develop)100000554.2115384615385490.37721173892123Nuitka (factory)Construct LocalVariableAccessTicks Construct LocalVariableAccess 00200000200000400000400000600000600000800000800000100000010000001200000120000014000001400000160000016000001800000180000020000002000000220000022000002400000240000026000002600000CPython 3.10Nuitka (main)Nuitka (develop)Nuitka (factory)279848189.78846153846155257.0CPython 3.10100000244.59615384615387495.285044705434Nuitka (main)100000399.4038461538462495.285044705434Nuitka (develop)100000554.2115384615385495.285044705434Nuitka (factory)Construct LocalVariableAccessTicks Construct LocalVariableAccess 0040000040000080000080000012000001200000160000016000002000000200000024000002400000280000028000003200000320000036000003600000CPython 2.7Nuitka (main)Nuitka (develop)Nuitka (factory)384879089.78846153846155257.0CPython 2.720244.59615384615387504.11410049552035Nuitka (main)16399.4038461538462504.11435731949325Nuitka (develop)16554.2115384615385504.11435731949325Nuitka (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.