Skip to content

stdlib-complexity: a linear row fails its 6x bound under host load even on CPU time (different row each run) #2911

Closed

Description

@ehartford

Seen three times on 2026-11-01 while two release legs shared eric-5090 (the Linux leg plus the Windows VM's leg; load average 22–48):

btree-map-str-descending  n=1000  small_ns=2659157  large_ns=19215000  within_bound=false   (linux-x86_64, v0.16.0.4 leg, load 22)
unordered-set-slots       n=4000  small_ns=3760714  large_ns=24111666  within_bound=false   (linux-x86_64, v0.16.0.3 leg, load 48)
btree-map-str-ascending   n=1000  small_ns=5208333  large_ns=39062500  within_bound=false   (windows-x86_64 VM on the same box, before #2906)

Each passes alone (:test green on the same tree once the other leg ended), and a different row fails each time, so the bound is reading contention, not growth. test/complexity/stdlib.w already measures CPU time (#1998) and now spans 20 clock ticks (#2906): what remains is that CPU time per operation rises with n under a shared cache (the n×4 working set misses where the n set fits), so a 4× input reads 6.4–7.5× against the 6× bound.

Options for the measurement: compare the best of several samples rather than the median (contention only adds), or lower the per-row noise with more n points and a fitted slope; either way the control row must still miss. The release legs worked around it by rerunning :test with the box otherwise idle.

Activity

  1. ehartford commented on Nov 2, 2026

    @ehartford
    ContributorAuthor

    Fixed: #2912 (a sample is the least of three), #2913 (a row holds when any of five rounds keeps the bound), #2918 (hash-index measures below a 4-core runner's L2 cliff). Released in v0.16.0.5 through v0.16.0.7; the row has passed on every host and CI lane since.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions