]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.13] 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:26:07 +0000 (14:26 +0100)
committerGitHub <noreply@github.com>
Wed, 24 Dec 2025 13:26:07 +0000 (13:26 +0000)
commite91c11449cad34bac3ea55ee09ca557691d92b53
tree1dfd4b0be5f46f59100a7fa95940b4aff90b9d9b
parente20863f2239950ca5e316a3ffab9f60abb1b5f48
[3.13] gh-142145: Avoid timing measurements in quadratic behavior test (gh-143105) (#143140)

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