Construct FunctionCreationClosure

Performance Diagrams

Construct FunctionCreationClosure 0020000002000000400000040000006000000600000080000008000000100000001000000012000000120000001400000014000000160000001600000018000000180000002000000020000000220000002200000024000000240000002600000026000000CPython 3.12Nuitka (main)Nuitka (develop)Nuitka (factory)2665263388.95192307692307257.0CPython 3.123393326242.31730769230768472.6534626500994Nuitka (main)3353327395.6826923076923473.0243216293692Nuitka (develop)3353327549.0480769230769473.0243216293692Nuitka (factory)Construct FunctionCreationClosureTicks Construct FunctionCreationClosure 00200000020000004000000400000060000006000000800000080000001000000010000000120000001200000014000000140000001600000016000000180000001800000020000000200000002200000022000000CPython 3.11Nuitka (main)Nuitka (develop)Nuitka (factory)2260186188.95192307692307257.0CPython 3.112799803242.31730769230768473.50399402271137Nuitka (main)2800414395.6826923076923473.4973137099708Nuitka (develop)2800414549.0480769230769473.4973137099708Nuitka (factory)Construct FunctionCreationClosureTicks Construct FunctionCreationClosure 00200000020000004000000400000060000006000000800000080000001000000010000000120000001200000014000000140000001600000016000000180000001800000020000000200000002200000022000000CPython 3.10Nuitka (main)Nuitka (develop)Nuitka (factory)2319961688.95192307692307257.0CPython 3.103053038242.31730769230768471.5953351621788Nuitka (main)3052890395.6826923076923471.59691161400127Nuitka (develop)3052890549.0480769230769471.59691161400127Nuitka (factory)Construct FunctionCreationClosureTicks Construct FunctionCreationClosure 0020000002000000400000040000006000000600000080000008000000100000001000000012000000120000001400000014000000160000001600000018000000180000002000000020000000220000002200000024000000240000002600000026000000CPython 2.7Nuitka (main)Nuitka (develop)Nuitka (factory)2754437388.95192307692307257.0CPython 2.72951121242.31730769230768477.63929089702197Nuitka (main)2950932395.6826923076923477.64098651767347Nuitka (develop)2950932549.0480769230769477.64098651767347Nuitka (factory)Construct FunctionCreationClosureTicks

Source Code with Construct

    return returningValue, x


for x in itertools.repeat(None, 50000):
    calledRepeatedly(x)

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

    # construct_end

    return returningValue, x


for x in itertools.repeat(None, 50000):
    calledRepeatedly(x)

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.