Construct DictCreation

Performance Diagrams

Construct DictCreation 00100000010000002000000200000030000003000000400000040000005000000500000060000006000000700000070000008000000800000090000009000000100000001000000011000000110000001200000012000000130000001300000014000000140000001500000015000000CPython 3.12Nuitka (main)Nuitka (develop)Nuitka (factory)1551868488.95192307692307257.0CPython 3.1211260000242.31730769230768324.81414806921674Nuitka (main)11240000395.6826923076923325.13262273448527Nuitka (develop)11240000549.0480769230769325.13262273448527Nuitka (factory)Construct DictCreationTicks Construct DictCreation 0010000001000000200000020000003000000300000040000004000000500000050000006000000600000070000007000000800000080000009000000900000010000000100000001100000011000000CPython 3.11Nuitka (main)Nuitka (develop)Nuitka (factory)1188928488.95192307692307257.0CPython 3.119640044242.31730769230768303.7498133354631Nuitka (main)9530043395.6826923076923306.0361528175612Nuitka (develop)9530000549.0480769230769306.0370465603247Nuitka (factory)Construct DictCreationTicks Construct DictCreation 0010000001000000200000020000003000000300000040000004000000500000050000006000000600000070000007000000800000080000009000000900000010000000100000001100000011000000CPython 3.10Nuitka (main)Nuitka (develop)Nuitka (factory)1139889988.95192307692307257.0CPython 3.108150000242.31730769230768327.43249755625857Nuitka (main)8110000395.6826923076923328.2996528301684Nuitka (develop)8110000549.0480769230769328.2996528301684Nuitka (factory)Construct DictCreationTicks Construct DictCreation 001000000010000000200000002000000030000000300000004000000040000000CPython 3.8Nuitka (main)Nuitka (develop)Nuitka (factory)4988410188.95192307692307257.0CPython 3.836499975242.31730769230768323.3021559560785Nuitka (main)36500086395.6826923076923323.30160608533527Nuitka (develop)36299820549.0480769230769324.2936818895155Nuitka (factory)Construct DictCreationTicks Construct DictCreation 001000000100000020000002000000300000030000004000000400000050000005000000600000060000007000000700000080000008000000900000090000001000000010000000CPython 2.7Nuitka (main)Nuitka (develop)Nuitka (factory)1003270188.95192307692307257.0CPython 2.76200115242.31730769230768351.40039760594266Nuitka (main)6190115395.6826923076923351.6467075324673Nuitka (develop)6190115549.0480769230769351.6467075324673Nuitka (factory)Construct DictCreationTicks

Source Code with Construct

    dict_val3 = module_value3
    dict_val4 = module_value4

    l = 1

    if cond:
        l = {
            dict_key1: dict_val1,
            dict_key2: dict_val2,
            dict_key3: dict_val3,
            dict_key4: dict_val4,
        }

    return (
        l,
        dict_val1,
        dict_val2,
        dict_val3,
        dict_val4,
        dict_key1,
        dict_key2,
        dict_key3,
        dict_key4,
    )


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

    dict_val3 = module_value3
    dict_val4 = module_value4

    l = 1

    if cond:
        l = {
            dict_key1: dict_val1,
            dict_key2: dict_val2,
            dict_key3: dict_val3,
            dict_key4: dict_val4,
        }

    return (
        l,
        dict_val1,
        dict_val2,
        dict_val3,
        dict_val4,
        dict_key1,
        dict_key2,
        dict_key3,
        dict_key4,
    )


for x in itertools.repeat(None, 10000):
    # construct_begin

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