Construct GeneratorExpressionUsage

Performance Diagrams

Construct GeneratorExpressionUsage 00100000001000000020000000200000003000000030000000400000004000000050000000500000006000000060000000700000007000000080000000800000009000000090000000100000000100000000110000000110000000120000000120000000130000000130000000CPython 3.12Nuitka (main)Nuitka (develop)Nuitka (factory)13419405988.11538461538461257.0CPython 3.1296950089240.03846153846155325.5839450698324Nuitka (main)96150050391.96153846153845327.0571991517609Nuitka (develop)96150079543.8846153846154327.05714574890385Nuitka (factory)Construct GeneratorExpressionUsageTicks Construct GeneratorExpressionUsage 00100000001000000020000000200000003000000030000000400000004000000050000000500000006000000060000000700000007000000080000000800000009000000090000000100000000100000000110000000110000000120000000120000000CPython 3.11Nuitka (main)Nuitka (develop)Nuitka (factory)12234272888.11538461538461257.0CPython 3.1185750030240.03846153846155330.9121874116181Nuitka (main)85349944391.96153846153845331.7203057802818Nuitka (develop)85349647543.8846153846154331.7209056791923Nuitka (factory)Construct GeneratorExpressionUsageTicks Construct GeneratorExpressionUsage 00100000001000000020000000200000003000000030000000400000004000000050000000500000006000000060000000700000007000000080000000800000009000000090000000100000000100000000110000000110000000120000000120000000130000000130000000140000000140000000150000000150000000CPython 3.10Nuitka (main)Nuitka (develop)Nuitka (factory)15829306688.11538461538461257.0CPython 3.1083350297240.03846153846155373.9950879944225Nuitka (main)82950026391.96153846153845374.61996136768437Nuitka (develop)82949885543.8846153846154374.620181486418Nuitka (factory)Construct GeneratorExpressionUsageTicks Construct GeneratorExpressionUsage 00100000001000000020000000200000003000000030000000400000004000000050000000500000006000000060000000700000007000000080000000800000009000000090000000100000000100000000110000000110000000120000000120000000130000000130000000140000000140000000150000000150000000CPython 3.8Nuitka (main)Nuitka (develop)Nuitka (factory)15617563288.11538461538461257.0CPython 3.882949959240.03846153846155372.8643644683018Nuitka (main)82950121391.96153846153845372.8641081370689Nuitka (develop)82150066543.8846153846154374.1300284122528Nuitka (factory)Construct GeneratorExpressionUsageTicks Construct GeneratorExpressionUsage 00100000001000000020000000200000003000000030000000400000004000000050000000500000006000000060000000700000007000000080000000800000009000000090000000100000000100000000110000000110000000120000000120000000130000000130000000140000000140000000150000000150000000CPython 2.7Nuitka (main)Nuitka (develop)Nuitka (factory)15388334288.11538461538461257.0CPython 2.791707982240.03846153846155356.8450371580831Nuitka (main)92257983391.96153846153845355.96181154777724Nuitka (develop)92257983543.8846153846154355.96181154777724Nuitka (factory)Construct GeneratorExpressionUsageTicks

Source Code with Construct

    # make sure it is still running.
    y = next(gen)

    return x, y


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

    # make sure it is still running.
    y = next(gen)

    return x, y


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.