Construct FunctionCreationClosure

Performance Diagrams

Construct FunctionCreationClosure 0020000002000000400000040000006000000600000080000008000000100000001000000012000000120000001400000014000000160000001600000018000000180000002000000020000000220000002200000024000000240000002600000026000000CPython 3.12Nuitka (main)Nuitka (develop)Nuitka (factory)2665263388.95192307692307257.0CPython 3.123391493242.31730769230768472.67045768770043Nuitka (main)3325180395.6826923076923473.2852923458747Nuitka (develop)3325180549.0480769230769473.2852923458747Nuitka (factory)Construct FunctionCreationClosureTicks Construct FunctionCreationClosure 00200000020000004000000400000060000006000000800000080000001000000010000000120000001200000014000000140000001600000016000000180000001800000020000000200000002200000022000000CPython 3.11Nuitka (main)Nuitka (develop)Nuitka (factory)2260186188.95192307692307257.0CPython 3.112800929242.31730769230768473.4916830044693Nuitka (main)2785446395.6826923076923473.66096497200283Nuitka (develop)2785446549.0480769230769473.66096497200283Nuitka (factory)Construct FunctionCreationClosureTicks Construct FunctionCreationClosure 00200000020000004000000400000060000006000000800000080000001000000010000000120000001200000014000000140000001600000016000000180000001800000020000000200000002200000022000000CPython 3.10Nuitka (main)Nuitka (develop)Nuitka (factory)2319961688.95192307692307257.0CPython 3.103051004242.31730769230768471.61700072303586Nuitka (main)3051253395.6826923076923471.6143484493616Nuitka (develop)3051253549.0480769230769471.6143484493616Nuitka (factory)Construct FunctionCreationClosureTicks Construct FunctionCreationClosure 0020000002000000400000040000006000000600000080000008000000100000001000000012000000120000001400000014000000160000001600000018000000180000002000000020000000220000002200000024000000240000002600000026000000CPython 2.7Nuitka (main)Nuitka (develop)Nuitka (factory)2754437388.95192307692307257.0CPython 2.72951121242.31730769230768477.63929089702197Nuitka (main)2951131395.6826923076923477.63920118164356Nuitka (develop)2951131549.0480769230769477.63920118164356Nuitka (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.