Construct RichComparisonConditionStrings

Performance Diagrams

Construct RichComparisonConditionStrings 0020000020000040000040000060000060000080000080000010000001000000120000012000001400000140000016000001600000180000018000002000000200000022000002200000CPython 3.12Nuitka (main)Nuitka (develop)Nuitka (factory)226570789.78846153846155257.0CPython 3.12368971244.59615384615387463.8725771486985Nuitka (main)368971399.4038461538462463.8725771486985Nuitka (develop)368971554.2115384615385463.8725771486985Nuitka (factory)Construct RichComparisonConditionStringsTicks Construct RichComparisonConditionStrings 002000002000004000004000006000006000008000008000001000000100000012000001200000140000014000001600000160000018000001800000200000020000002200000220000024000002400000CPython 3.11Nuitka (main)Nuitka (develop)Nuitka (factory)252868289.78846153846155257.0CPython 3.11809998244.59615384615387424.9583505131558Nuitka (main)809998399.4038461538462424.9583505131558Nuitka (develop)809998554.2115384615385424.9583505131558Nuitka (factory)Construct RichComparisonConditionStringsTicks Construct RichComparisonConditionStrings 002000002000004000004000006000006000008000008000001000000100000012000001200000140000014000001600000160000018000001800000200000020000002200000220000024000002400000260000026000002800000280000030000003000000CPython 3.10Nuitka (main)Nuitka (develop)Nuitka (factory)303858089.78846153846155257.0CPython 3.10869998244.59615384615387433.3619766469865Nuitka (main)869998399.4038461538462433.3619766469865Nuitka (develop)869998554.2115384615385433.3619766469865Nuitka (factory)Construct RichComparisonConditionStringsTicks Construct RichComparisonConditionStrings 0010000001000000200000020000003000000300000040000004000000CPython 2.7Nuitka (main)Nuitka (develop)Nuitka (factory)494469689.78846153846155257.0CPython 2.7439999244.59615384615387482.12606067810225Nuitka (main)439999399.4038461538462482.12606067810225Nuitka (develop)439999554.2115384615385482.12606067810225Nuitka (factory)Construct RichComparisonConditionStringsTicks

Source Code with Construct

def makeSame(value):
    new_value = "".join(list(value))
    assert new_value is not value

module_value1_copy = makeSame(module_value1)

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

def makeSame(value):
    new_value = "".join(list(value))
    assert new_value is not value

module_value1_copy = makeSame(module_value1)

for x in range(10000):
    # construct_begin


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