Skip to content

stdlib-complexity: a sample spans at least 20 ticks of the CPU clock (#2894) - #2895

Closed
ehartford wants to merge 1 commit into
mainfrom
complexity-clock-ticks
Closed

ehartford wants to merge 1 commit into
mainfrom
complexity-clock-ticks

Conversation

@ehartford

Copy link
Copy Markdown
Contributor

Windows counts process CPU time in 15.6 ms ticks; a 50 ms sample is three ticks, so a three-run large sample carried a tick of error per run and btree-map-str-descending read 7.8x at n×4 against a 6x bound, twice in the v0.16.0.1 Windows leg. The sample is now max(50 ms, 20 × the clock's measured tick): Linux and macOS unchanged (the Mac run stays 17 s), Windows samples ~310 ms. Closes #2894.

… Windows's 15.6 ms tick put a tick of error into a three-run sample and a linear row read 7.8x at n×4 (#2894)
@ehartford

Copy link
Copy Markdown
Contributor Author

Superseded by the rebase on main (same commit, cherry-picked) with the release-notes correction.

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

Labels

None yet

Projects

None yet

1 participant