Construct NumpyArrayConstruction

Performance Diagrams

Construct NumpyArrayConstruction 002000000020000000400000004000000060000000600000008000000080000000100000000100000000120000000120000000140000000140000000160000000160000000180000000180000000200000000200000000220000000220000000240000000240000000CPython 3.12Nuitka (main)Nuitka (develop)Nuitka (factory)25206894588.11538461538461257.0CPython 3.12169917986240.03846153846155337.53656046288324Nuitka (main)160579045391.96153846153845346.6919762445274Nuitka (develop)202322468543.8846153846154305.7688786776784Nuitka (factory)Construct NumpyArrayConstructionTicks Construct NumpyArrayConstruction 002000000020000000400000004000000060000000600000008000000080000000100000000100000000120000000120000000140000000140000000160000000160000000180000000180000000200000000200000000220000000220000000240000000240000000CPython 3.11Nuitka (main)Nuitka (develop)Nuitka (factory)13160562188.11538461538461376.6506505378167CPython 3.11255143306240.03846153846155257.0Nuitka (main)179296045391.96153846153845330.46077531047774Nuitka (develop)156169574543.8846153846154352.8595866512759Nuitka (factory)Construct NumpyArrayConstructionTicks Construct NumpyArrayConstruction 002000000020000000400000004000000060000000600000008000000080000000100000000100000000120000000120000000140000000140000000160000000160000000CPython 3.10Nuitka (main)Nuitka (develop)Nuitka (factory)16420428088.11538461538461257.0CPython 3.10159619009240.03846153846155263.90049617909335Nuitka (main)159698146391.96153846153845263.7814008047687Nuitka (develop)159700202543.8846153846154263.7783066757315Nuitka (factory)Construct NumpyArrayConstructionTicks Construct NumpyArrayConstruction 002000000020000000400000004000000060000000600000008000000080000000100000000100000000120000000120000000140000000140000000160000000160000000CPython 3.8Nuitka (main)Nuitka (develop)Nuitka (factory)16120245688.11538461538461257.0CPython 3.8158938473240.03846153846155260.47057385904645Nuitka (main)158936285391.96153846153845260.47392795472814Nuitka (develop)159565001543.8846153846154259.5101374517234Nuitka (factory)Construct NumpyArrayConstructionTicks Construct NumpyArrayConstruction 002000000020000000400000004000000060000000600000008000000080000000100000000100000000120000000120000000140000000140000000160000000160000000180000000180000000CPython 2.7Nuitka (main)Nuitka (develop)Nuitka (factory)19067074788.11538461538461257.0CPython 2.7187503226240.03846153846155261.1052084942653Nuitka (main)187581768391.96153846153845261.00341555096463Nuitka (develop)187543404543.8846153846154261.05313652161453Nuitka (factory)Construct NumpyArrayConstructionTicks

Source Code with Construct

    return x


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

    x = numpy.array, numpy.int32
    # construct_end

    return x


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