Construct InplaceOperationStringAdd

Performance Diagrams

Construct InplaceOperationStringAdd 001000000010000000200000002000000030000000300000004000000040000000CPython 3.12Nuitka (main)Nuitka (develop)Nuitka (factory)2974940388.95192307692307330.75259713471723CPython 3.1242355065242.31730769230768257.29388932941697Nuitka (main)42405497395.6826923076923257.0Nuitka (develop)42405497549.0480769230769257.0Nuitka (factory)Construct InplaceOperationStringAddTicks Construct InplaceOperationStringAdd 004000000400000080000008000000120000001200000016000000160000002000000020000000240000002400000028000000280000003200000032000000CPython 3.11Nuitka (main)Nuitka (develop)Nuitka (factory)3476508188.95192307692307264.61296937563577CPython 3.1135869804242.31730769230768257.0023492056181Nuitka (main)35870145395.6826923076923257.0Nuitka (develop)35870145549.0480769230769257.0Nuitka (factory)Construct InplaceOperationStringAddTicks Construct InplaceOperationStringAdd 001000000010000000200000002000000030000000300000004000000040000000CPython 3.10Nuitka (main)Nuitka (develop)Nuitka (factory)4559789088.95192307692307257.0CPython 3.1027939998242.31730769230768352.69602394051395Nuitka (main)27939969395.6826923076923352.69618110450017Nuitka (develop)27939969549.0480769230769352.69618110450017Nuitka (factory)Construct InplaceOperationStringAddTicks Construct InplaceOperationStringAdd 001000000010000000200000002000000030000000300000004000000040000000CPython 2.7Nuitka (main)Nuitka (develop)Nuitka (factory)4057776288.95192307692307297.5761523260894CPython 2.748549562242.31730769230768257.0Nuitka (main)48549519395.6826923076923257.0002188683296Nuitka (develop)48549519549.0480769230769257.0002188683296Nuitka (factory)Construct InplaceOperationStringAddTicks

Source Code with Construct

    s += additiv

    # construct_begin
    s += additiv
    s += additiv
    s += additiv
    s += additiv
    s += additiv
    # construct_end

    # Prevent optimization into direct return.
    s += additiv

    return s


for x in itertools.repeat(None, 10000):
    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

    s += additiv

    # construct_begin







    # Prevent optimization into direct return.
    s += additiv

    return s


for x in itertools.repeat(None, 10000):
    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.