]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.14] gh-142145: Avoid timing measurements in quadratic behavior test (gh-143105...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Wed, 24 Dec 2025 13:25:43 +0000 (14:25 +0100)
committerGitHub <noreply@github.com>
Wed, 24 Dec 2025 13:25:43 +0000 (13:25 +0000)
commit41f468786762348960486c166833a218a0a436af
tree70800f6687bcdc977ac1be439b416b4daa5584c3
parent64461f1ca563a0b1a10ffce614bdccf8adf612db
[3.14] gh-142145: Avoid timing measurements in quadratic behavior test (gh-143105) (#143139)

Count the number of Element attribute accesses as a proxy for work done.
With double the amount of work, a ratio of 2.0 indicates linear scaling
and 4.0 quadratic scaling. Use 3.2 as an intermediate threshold.
(cherry picked from commit 57937a8e5e293f0dcba5115f7b7a11b1e0c9a273)

Co-authored-by: Sam Gross <colesbury@gmail.com>
Lib/test/test_minidom.py