Construct NumpyArrayConstruction

Performance Diagrams

Construct NumpyArrayConstruction 002000000020000000400000004000000060000000600000008000000080000000100000000100000000120000000120000000140000000140000000160000000160000000180000000180000000CPython 3.12Nuitka (main)Nuitka (develop)Nuitka (factory)18956180788.11538461538461261.69395590497CPython 3.12193232253240.03846153846155257.0Nuitka (main)193227614391.96153846153845257.00593259278116Nuitka (develop)193223910543.8846153846154257.01066945927425Nuitka (factory)Construct NumpyArrayConstructionTicks Construct NumpyArrayConstruction 002000000020000000400000004000000060000000600000008000000080000000100000000100000000120000000120000000140000000140000000160000000160000000180000000180000000200000000200000000220000000220000000CPython 3.11Nuitka (main)Nuitka (develop)Nuitka (factory)16171953388.11538461538461324.62420199898537CPython 3.11222648177240.03846153846155257.0Nuitka (main)135996445391.96153846153845353.17404628814563Nuitka (develop)152479036543.8846153846154334.88015379234906Nuitka (factory)Construct NumpyArrayConstructionTicks Construct NumpyArrayConstruction 002000000020000000400000004000000060000000600000008000000080000000100000000100000000120000000120000000140000000140000000160000000160000000180000000180000000200000000200000000CPython 3.10Nuitka (main)Nuitka (develop)Nuitka (factory)20855937288.11538461538461257.0CPython 3.10172546573240.03846153846155299.6704232498434Nuitka (main)197221678391.96153846153845270.4336740017684Nuitka (develop)138175516543.8846153846154340.39559847808636Nuitka (factory)Construct NumpyArrayConstructionTicks Construct NumpyArrayConstruction 002000000020000000400000004000000060000000600000008000000080000000100000000100000000120000000120000000140000000140000000160000000160000000180000000180000000CPython 2.7Nuitka (main)Nuitka (develop)Nuitka (factory)19560262788.11538461538461257.0CPython 2.7193824854240.03846153846155259.245956843176Nuitka (main)193741176391.96153846153845259.35167178919176Nuitka (develop)193726033543.8846153846154259.3708027606241Nuitka (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.