Construct RichComparisonConditionInts

Performance Diagrams

Construct RichComparisonConditionInts 001000000100000020000002000000300000030000004000000400000050000005000000600000060000007000000700000080000008000000900000090000001000000010000000CPython 3.12Nuitka (main)Nuitka (develop)Nuitka (factory)1087334488.95192307692307257.0CPython 3.125074990242.31730769230768388.77753585706057Nuitka (main)5174990395.6826923076923386.50486440828286Nuitka (develop)5174990549.0480769230769386.50486440828286Nuitka (factory)Construct RichComparisonConditionIntsTicks Construct RichComparisonConditionInts 00100000010000002000000200000030000003000000400000040000005000000500000060000006000000700000070000008000000800000090000009000000CPython 3.11Nuitka (main)Nuitka (develop)Nuitka (factory)979925489.78846153846155257.0CPython 3.114399999244.59615384615387393.15719890121625Nuitka (main)4399999399.4038461538462393.15719890121625Nuitka (develop)4399999554.2115384615385393.15719890121625Nuitka (factory)Construct RichComparisonConditionIntsTicks Construct RichComparisonConditionInts 00100000010000002000000200000030000003000000400000040000005000000500000060000006000000700000070000008000000800000090000009000000100000001000000011000000110000001200000012000000CPython 3.10Nuitka (main)Nuitka (develop)Nuitka (factory)1232394388.95192307692307257.0CPython 3.103900038242.31730769230768425.91318988074363Nuitka (main)3800038395.6826923076923427.9183548236145Nuitka (develop)3800038549.0480769230769427.9183548236145Nuitka (factory)Construct RichComparisonConditionIntsTicks Construct RichComparisonConditionInts 001000000100000020000002000000300000030000004000000400000050000005000000600000060000007000000700000080000008000000900000090000001000000010000000110000001100000012000000120000001300000013000000CPython 2.7Nuitka (main)Nuitka (develop)Nuitka (factory)1330027388.95192307692307257.0CPython 2.71050000242.31730769230768484.60667574556265Nuitka (main)1050000395.6826923076923484.60667574556265Nuitka (develop)1050000549.0480769230769484.60667574556265Nuitka (factory)Construct RichComparisonConditionIntsTicks

Source Code with Construct

    return value


for x in range(50000):
    # construct_begin
    calledRepeatedly(True, x)
    # 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 value


for x in range(50000):
    # construct_begin

    # construct_alternative
    calledRepeatedly(False, x)
    # 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.