Construct FunctionCreationCoroutineSend35

Performance Diagrams

Construct FunctionCreationCoroutineSend35 002000000020000000400000004000000060000000600000008000000080000000100000000100000000120000000120000000140000000140000000160000000160000000180000000180000000CPython 3.12Nuitka (main)Nuitka (develop)Nuitka (factory)10606575888.11538461538461359.18910007813895CPython 3.12180671161240.03846153846155257.24966111996105Nuitka (main)180853878391.96153846153845257.0Nuitka (develop)180853878543.8846153846154257.0Nuitka (factory)Construct FunctionCreationCoroutineSend35Ticks Construct FunctionCreationCoroutineSend35 002000000020000000400000004000000060000000600000008000000080000000100000000100000000120000000120000000140000000140000000160000000160000000180000000180000000CPython 3.11Nuitka (main)Nuitka (develop)Nuitka (factory)18350148388.11538461538461257.0CPython 3.11143102786240.03846153846155311.40359055362717Nuitka (main)143299761391.96153846153845311.13833082880734Nuitka (develop)143299761543.8846153846154311.13833082880734Nuitka (factory)Construct FunctionCreationCoroutineSend35Ticks Construct FunctionCreationCoroutineSend35 00100000001000000020000000200000003000000030000000400000004000000050000000500000006000000060000000700000007000000080000000800000009000000090000000100000000100000000110000000110000000120000000120000000130000000130000000CPython 3.10Nuitka (main)Nuitka (develop)Nuitka (factory)12015117288.11538461538461287.78622210953364CPython 3.10137250118240.03846153846155257.0Nuitka (main)137250100391.96153846153845257.0000324085472Nuitka (develop)137250100543.8846153846154257.0000324085472Nuitka (factory)Construct FunctionCreationCoroutineSend35Ticks

Source Code with Construct

    try:
        coro.send(None)
    except StopIteration:
        pass
    # construct_end

    try:
        coro.send(None)
    except (RuntimeError, StopIteration):
        pass

    return coro


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

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

    try:
        coro.send(None)
    except (RuntimeError, StopIteration):
        pass

    return coro


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

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.