Construct RichComparisonConditionStrings

Performance Diagrams

Construct RichComparisonConditionStrings 0020000020000040000040000060000060000080000080000010000001000000120000012000001400000140000016000001600000180000018000002000000200000022000002200000CPython 3.12Nuitka (main)Nuitka (develop)Nuitka (factory)239398989.78846153846155257.0CPython 3.12848969244.59615384615387416.4820241607048Nuitka (main)898969399.4038461538462411.3208604165234Nuitka (develop)898969554.2115384615385411.3208604165234Nuitka (factory)Construct RichComparisonConditionStringsTicks Construct RichComparisonConditionStrings 00200000200000400000400000600000600000800000800000100000010000001200000120000014000001400000160000016000001800000180000020000002000000220000022000002400000240000026000002600000CPython 3.11Nuitka (main)Nuitka (develop)Nuitka (factory)275552889.78846153846155257.0CPython 3.11919998244.59615384615387421.610086314883Nuitka (main)839998399.4038461538462428.7844756766426Nuitka (develop)839998554.2115384615385428.7844756766426Nuitka (factory)Construct RichComparisonConditionStringsTicks Construct RichComparisonConditionStrings 00200000200000400000400000600000600000800000800000100000010000001200000120000014000001400000160000016000001800000180000020000002000000220000022000002400000240000026000002600000CPython 3.10Nuitka (main)Nuitka (develop)Nuitka (factory)275883989.78846153846155257.0CPython 3.10919998244.59615384615387421.7091044318057Nuitka (main)839998399.4038461538462428.87488350381057Nuitka (develop)839998554.2115384615385428.87488350381057Nuitka (factory)Construct RichComparisonConditionStringsTicks Construct RichComparisonConditionStrings 00100000010000002000000200000030000003000000400000040000005000000500000060000006000000700000070000008000000800000090000009000000100000001000000011000000110000001200000012000000130000001300000014000000140000001500000015000000CPython 3.8Nuitka (main)Nuitka (develop)Nuitka (factory)1551205088.95192307692307257.0CPython 3.86524672242.31730769230768400.1738146250074Nuitka (main)6524679395.6826923076923400.17370311120413Nuitka (develop)6274889549.0480769230769404.15299352885216Nuitka (factory)Construct RichComparisonConditionStringsTicks Construct RichComparisonConditionStrings 0010000001000000200000020000003000000300000040000004000000CPython 2.7Nuitka (main)Nuitka (develop)Nuitka (factory)497446689.78846153846155257.0CPython 2.7499996244.59615384615387479.2772002060121Nuitka (main)499996399.4038461538462479.2772002060121Nuitka (develop)499996554.2115384615385479.2772002060121Nuitka (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.