]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-142145: Avoid timing measurements in quadratic behavior test (gh-143105)
authorSam Gross <colesbury@gmail.com>
Wed, 24 Dec 2025 13:01:45 +0000 (08:01 -0500)
committerGitHub <noreply@github.com>
Wed, 24 Dec 2025 13:01:45 +0000 (08:01 -0500)
commit57937a8e5e293f0dcba5115f7b7a11b1e0c9a273
treec4e26dd38fa7d5642b75f9993f6e78225172afa1
parent9af7a20caeb2912a05dd0fa07bbb4bfe7fb874e4
gh-142145: Avoid timing measurements in quadratic behavior test (gh-143105)

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.
Lib/test/test_minidom.py