]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-125985: Fix `cmodule_function()` scaling benchmark (#128460)
authorSam Gross <colesbury@gmail.com>
Fri, 3 Jan 2025 21:48:47 +0000 (16:48 -0500)
committerGitHub <noreply@github.com>
Fri, 3 Jan 2025 21:48:47 +0000 (21:48 +0000)
commitf1574859d7d6cd259f867194762f04b72ef2c340
tree66b24ab078353f49ed79b00f136a42f64cace604
parentb75ed951d4de8ba85349d80c8e7f097b3cd6052f
gh-125985: Fix `cmodule_function()` scaling benchmark (#128460)

Add a separate benchmark that measures the effect of
`_PyObject_LookupSpecial()` on scaling.

In the process of cleaning up the scaling benchmarks for inclusion, I
unintentionally changed the "cmodule_function" benchmark to pass an
`int` to `math.floor()` instead of a `float`, which causes it to use the
`_PyObject_LookupSpecial()` code path. `_PyObject_LookupSpecial()` has
its own scaling issues that we want to measure separately from calling a
function on a C module.
Tools/ftscalingbench/ftscalingbench.py