SIGN IN SIGN UP

[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>
M
Miss Islington (bot) committed
e91c11449cad34bac3ea55ee09ca557691d92b53
Parent: e20863f
Committed by GitHub <noreply@github.com> on 12/24/2025, 1:26:07 PM