Construct GeneratorUsage

Performance Diagrams

Construct GeneratorUsage 002000000200000040000004000000600000060000008000000800000010000000100000001200000012000000140000001400000016000000160000001800000018000000CPython 3.12Nuitka (main)Nuitka (develop)Nuitka (factory)1994933288.95192307692307257.0CPython 3.129100000242.31730769230768391.3923119831782Nuitka (main)9100000395.6826923076923391.3923119831782Nuitka (develop)9100000549.0480769230769391.3923119831782Nuitka (factory)Construct GeneratorUsageTicks Construct GeneratorUsage 0020000002000000400000040000006000000600000080000008000000100000001000000012000000120000001400000014000000160000001600000018000000180000002000000020000000220000002200000024000000240000002600000026000000CPython 3.11Nuitka (main)Nuitka (develop)Nuitka (factory)2715059488.95192307692307257.0CPython 3.118800000242.31730769230768424.0208060358005Nuitka (main)8800000395.6826923076923424.0208060358005Nuitka (develop)8800000549.0480769230769424.0208060358005Nuitka (factory)Construct GeneratorUsageTicks Construct GeneratorUsage 0020000002000000400000040000006000000600000080000008000000100000001000000012000000120000001400000014000000160000001600000018000000180000002000000020000000220000002200000024000000240000002600000026000000CPython 3.10Nuitka (main)Nuitka (develop)Nuitka (factory)2682040888.95192307692307257.0CPython 3.108850000242.31730769230768422.57407645011904Nuitka (main)8850000395.6826923076923422.57407645011904Nuitka (develop)8850000549.0480769230769422.57407645011904Nuitka (factory)Construct GeneratorUsageTicks Construct GeneratorUsage 0040000004000000800000080000001200000012000000160000001600000020000000200000002400000024000000280000002800000032000000320000003600000036000000CPython 2.7Nuitka (main)Nuitka (develop)Nuitka (factory)3653080488.95192307692307257.0CPython 2.77750020242.31730769230768451.68978858752484Nuitka (main)7750016395.6826923076923451.6898156458272Nuitka (develop)7750016549.0480769230769451.6898156458272Nuitka (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.