Construct GeneratorUsage

Performance Diagrams

Construct GeneratorUsage 002000000200000040000004000000600000060000008000000800000010000000100000001200000012000000140000001400000016000000160000001800000018000000CPython 3.12Nuitka (main)Nuitka (develop)Nuitka (factory)1994924588.95192307692307257.0CPython 3.129600000242.31730769230768385.19821796032113Nuitka (main)11750001395.6826923076923358.56571512432595Nuitka (develop)11750001549.0480769230769358.56571512432595Nuitka (factory)Construct GeneratorUsageTicks Construct GeneratorUsage 0020000002000000400000040000006000000600000080000008000000100000001000000012000000120000001400000014000000160000001600000018000000180000002000000020000000220000002200000024000000240000002600000026000000CPython 3.11Nuitka (main)Nuitka (develop)Nuitka (factory)2715042988.95192307692307257.0CPython 3.118800000242.31730769230768424.02031928085955Nuitka (main)9900000395.6826923076923414.0084361140439Nuitka (develop)9900000549.0480769230769414.0084361140439Nuitka (factory)Construct GeneratorUsageTicks Construct GeneratorUsage 0020000002000000400000040000006000000600000080000008000000100000001000000012000000120000001400000014000000160000001600000018000000180000002000000020000000220000002200000024000000240000002600000026000000CPython 3.10Nuitka (main)Nuitka (develop)Nuitka (factory)2677032488.95192307692307257.0CPython 3.108849955242.31730769230768422.4219380342433Nuitka (main)9950000395.6826923076923412.26748330036594Nuitka (develop)9950047549.0480769230769412.2670494459577Nuitka (factory)Construct GeneratorUsageTicks Construct GeneratorUsage 0040000004000000800000080000001200000012000000160000001600000020000000200000002400000024000000280000002800000032000000320000003600000036000000CPython 2.7Nuitka (main)Nuitka (develop)Nuitka (factory)3653080888.95192307692307257.0CPython 2.78300000242.31730769230768447.96941345844516Nuitka (main)8507420395.6826923076923446.56630534550874Nuitka (develop)8507420549.0480769230769446.56630534550874Nuitka (factory)Construct GeneratorUsageTicks

Source Code with Construct

    return x


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 x


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.