Construct FunctionRaise

Performance Diagrams

Construct FunctionRaise 002000000020000000400000004000000060000000600000008000000080000000100000000100000000120000000120000000140000000140000000160000000160000000CPython 3.12Nuitka (main)Nuitka (develop)Nuitka (factory)17564983788.11538461538461257.0CPython 3.1274800152240.03846153846155398.88176387044064Nuitka (main)51000152391.96153846153845432.36512061187705Nuitka (develop)51350152543.8846153846154431.8727183068559Nuitka (factory)Construct FunctionRaiseTicks Construct FunctionRaise 002000000020000000400000004000000060000000600000008000000080000000100000000100000000120000000120000000140000000140000000160000000160000000CPython 3.11Nuitka (main)Nuitka (develop)Nuitka (factory)17770275788.11538461538461257.0CPython 3.1156200095240.03846153846155425.9629218972842Nuitka (main)57300095391.96153846153845424.4332499458416Nuitka (develop)57750095543.8846153846154423.8074750566151Nuitka (factory)Construct FunctionRaiseTicks Construct FunctionRaise 00100000001000000020000000200000003000000030000000400000004000000050000000500000006000000060000000700000007000000080000000800000009000000090000000100000000100000000110000000110000000CPython 3.10Nuitka (main)Nuitka (develop)Nuitka (factory)11920419288.11538461538461257.0CPython 3.1054050060240.03846153846155392.06730022096485Nuitka (main)54900060391.96153846153845390.30521389330386Nuitka (develop)55350060543.8846153846154389.3723446610128Nuitka (factory)Construct FunctionRaiseTicks Construct FunctionRaise 00100000001000000020000000200000003000000030000000400000004000000050000000500000006000000060000000700000007000000080000000800000009000000090000000100000000100000000110000000110000000CPython 3.8Nuitka (main)Nuitka (develop)Nuitka (factory)11464096288.11538461538461257.0CPython 3.853401217240.03846153846155389.0058980264234Nuitka (main)53400352391.96153846153845389.0077625851637Nuitka (develop)55404820543.8846153846154384.68701307183323Nuitka (factory)Construct FunctionRaiseTicks Construct FunctionRaise 0040000000400000008000000080000000120000000120000000160000000160000000200000000200000000240000000240000000280000000280000000320000000320000000CPython 2.7Nuitka (main)Nuitka (develop)Nuitka (factory)35533770788.11538461538461257.0CPython 2.7123550464240.03846153846155418.1936830078228Nuitka (main)124150464391.96153846153845417.77642013971627Nuitka (develop)124550464543.8846153846154417.4982448943118Nuitka (factory)Construct FunctionRaiseTicks

Source Code with Construct

        if cond:
            raising_function()
    except TypeError:
        pass


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

        if cond:
            raising_function()
    except TypeError:
        pass


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

    # construct_alternative
    calledRepeatedly(raising_function, 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.