Construct FunctionCreationClosure

Performance Diagrams

Construct FunctionCreationClosure 004000000400000080000008000000120000001200000016000000160000002000000020000000240000002400000028000000280000003200000032000000CPython 3.12Nuitka (main)Nuitka (develop)Nuitka (factory)3255259388.95192307692307257.0CPython 3.124402092242.31730769230768470.6979343467591Nuitka (main)3654077395.6826923076923476.37631500365717Nuitka (develop)3648129549.0480769230769476.42146785239316Nuitka (factory)Construct FunctionCreationClosureTicks Construct FunctionCreationClosure 00200000020000004000000400000060000006000000800000080000001000000010000000120000001200000014000000140000001600000016000000180000001800000020000000200000002200000022000000CPython 3.11Nuitka (main)Nuitka (develop)Nuitka (factory)2255173688.95192307692307257.0CPython 3.113204582242.31730769230768469.0005041706358Nuitka (main)2560370395.6826923076923476.05959248888524Nuitka (develop)2557256549.0480769230769476.0937147980367Nuitka (factory)Construct FunctionCreationClosureTicks Construct FunctionCreationClosure 0020000002000000400000040000006000000600000080000008000000100000001000000012000000120000001400000014000000160000001600000018000000180000002000000020000000CPython 3.10Nuitka (main)Nuitka (develop)Nuitka (factory)2179991788.95192307692307257.0CPython 3.103251641242.31730769230768467.2560462818417Nuitka (main)2800906395.6826923076923472.3654030231823Nuitka (develop)2800812549.0480769230769472.3664685706408Nuitka (factory)Construct FunctionCreationClosureTicks Construct FunctionCreationClosure 002000000200000040000004000000600000060000008000000800000010000000100000001200000012000000140000001400000016000000160000001800000018000000200000002000000022000000220000002400000024000000CPython 3.8Nuitka (main)Nuitka (develop)Nuitka (factory)2514996388.95192307692307257.0CPython 3.83701262242.31730769230768467.74798388830175Nuitka (main)3701247395.6826923076923467.7481312734398Nuitka (develop)3551378549.0480769230769469.22069549060876Nuitka (factory)Construct FunctionCreationClosureTicks Construct FunctionCreationClosure 0020000002000000400000040000006000000600000080000008000000100000001000000012000000120000001400000014000000160000001600000018000000180000002000000020000000220000002200000024000000240000002600000026000000CPython 2.7Nuitka (main)Nuitka (develop)Nuitka (factory)2694418688.95192307692307257.0CPython 2.72800673242.31730769230768478.4293466116044Nuitka (main)2800630395.6826923076923478.42974098097Nuitka (develop)2800526549.0480769230769478.43069480455176Nuitka (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.