Construct GeneratorUsage

Performance Diagrams

Construct GeneratorUsage 0020000002000000400000040000006000000600000080000008000000100000001000000012000000120000001400000014000000160000001600000018000000180000002000000020000000CPython 3.12Nuitka (main)Nuitka (develop)Nuitka (factory)2059915888.95192307692307257.0CPython 3.127350000242.31730769230768415.9419710747401Nuitka (main)7450000395.6826923076923414.7423327952755Nuitka (develop)7450000549.0480769230769414.7423327952755Nuitka (factory)Construct GeneratorUsageTicks Construct GeneratorUsage 0020000002000000400000040000006000000600000080000008000000100000001000000012000000120000001400000014000000160000001600000018000000180000002000000020000000220000002200000024000000240000002600000026000000CPython 3.11Nuitka (main)Nuitka (develop)Nuitka (factory)2605089988.95192307692307257.0CPython 3.116199866242.31730769230768445.30427521168053Nuitka (main)6349956395.6826923076923443.8805413099475Nuitka (develop)6349913549.0480769230769443.88094920226393Nuitka (factory)Construct GeneratorUsageTicks Construct GeneratorUsage 002000000200000040000004000000600000060000008000000800000010000000100000001200000012000000140000001400000016000000160000001800000018000000200000002000000022000000220000002400000024000000CPython 3.10Nuitka (main)Nuitka (develop)Nuitka (factory)2492181188.95192307692307257.0CPython 3.105750000242.31730769230768447.10052877130244Nuitka (main)5900000395.6826923076923445.61318470580466Nuitka (develop)5900000549.0480769230769445.61318470580466Nuitka (factory)Construct GeneratorUsageTicks Construct GeneratorUsage 00200000020000004000000400000060000006000000800000080000001000000010000000120000001200000014000000140000001600000016000000180000001800000020000000200000002200000022000000CPython 3.8Nuitka (main)Nuitka (develop)Nuitka (factory)2379055188.95192307692307257.0CPython 3.85899996242.31730769230768442.83139918901804Nuitka (main)5899857395.6826923076923442.8328429991451Nuitka (develop)7750021549.0480769230769423.6149615611936Nuitka (factory)Construct GeneratorUsageTicks Construct GeneratorUsage 0040000004000000800000080000001200000012000000160000001600000020000000200000002400000024000000280000002800000032000000320000003600000036000000CPython 2.7Nuitka (main)Nuitka (develop)Nuitka (factory)3623080588.95192307692307257.0CPython 2.77450000242.31730769230768453.30200590672456Nuitka (main)7550000395.6826923076923452.61994713211163Nuitka (develop)7550000549.0480769230769452.61994713211163Nuitka (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.