Construct LocalVariableAccess

Performance Diagrams

Construct LocalVariableAccess 00200000200000400000400000600000600000800000800000100000010000001200000120000014000001400000160000016000001800000180000020000002000000CPython 3.12Nuitka (main)Nuitka (develop)Nuitka (factory)209874589.78846153846155257.0CPython 3.12100000244.59615384615387492.3409487208198Nuitka (main)100000399.4038461538462492.3409487208198Nuitka (develop)100000554.2115384615385492.3409487208198Nuitka (factory)Construct LocalVariableAccessTicks Construct LocalVariableAccess 0020000020000040000040000060000060000080000080000010000001000000120000012000001400000140000016000001600000CPython 3.11Nuitka (main)Nuitka (develop)Nuitka (factory)179900789.78846153846155257.0CPython 3.11100000244.59615384615387490.37917432740994Nuitka (main)100000399.4038461538462490.37917432740994Nuitka (develop)100000554.2115384615385490.37917432740994Nuitka (factory)Construct LocalVariableAccessTicks Construct LocalVariableAccess 0020000020000040000040000060000060000080000080000010000001000000120000012000001400000140000016000001600000180000018000002000000200000022000002200000CPython 3.10Nuitka (main)Nuitka (develop)Nuitka (factory)224889889.78846153846155257.0CPython 3.10100000244.59615384615387493.1270968132974Nuitka (main)100000399.4038461538462493.1270968132974Nuitka (develop)100000554.2115384615385493.1270968132974Nuitka (factory)Construct LocalVariableAccessTicks Construct LocalVariableAccess 001000000100000020000002000000300000030000004000000400000050000005000000600000060000007000000700000080000008000000CPython 3.8Nuitka (main)Nuitka (develop)Nuitka (factory)822297589.78846153846155257.0CPython 3.84600139244.59615384615387365.87282419543556Nuitka (main)4600119399.4038461538462365.8734252318843Nuitka (develop)4950028554.2115384615385355.358022094287Nuitka (factory)Construct LocalVariableAccessTicks Construct LocalVariableAccess 0040000040000080000080000012000001200000160000016000002000000200000024000002400000280000028000003200000320000036000003600000CPython 2.7Nuitka (main)Nuitka (develop)Nuitka (factory)374898789.78846153846155257.0CPython 2.7200000244.59615384615387490.9323362551004Nuitka (main)200000399.4038461538462490.9323362551004Nuitka (develop)200000554.2115384615385490.9323362551004Nuitka (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.