Skip to content

Fold new fragments and refresh benchmark tables for 7.0.0 - #1602

Merged
asvetlov merged 1 commit into
aio-libs:masterfrom
asvetlov:release-7.0.0-news
Sep 26, 2026
Merged

asvetlov merged 1 commit into
aio-libs:masterfrom
asvetlov:release-7.0.0-news

Conversation

@asvetlov

Copy link
Copy Markdown
Member

What do these changes do?

Finishes the 7.0.0 changelog and refreshes the benchmark tables, the part of #1597 that did not make it in before it merged.

The four PRs that followed the bisect fix slowdowns introduced earlier in this cycle, so they are folded into the entries whose changes they amend rather than listed as speedups over 6.9.1. 1599 (one thread-local version counter) becomes a symlink to 1587. 1598 (references in update() only when lower() can run code) becomes a symlink to 1581, which now says the extra references are limited to those keys. 1600 and 1601 (out-of-line slot operations and insert-path resize) merge into one 1600 entry with 1601 symlinked to it. Towncrier lists both numbers under each merged entry.

The tables in docs/benchmark.rst are refreshed per RELEASE.md step 2, collected at d66879b. Against the previous tables (6e6ac72), for k, v in d.items() needs 58% to 66% fewer instructions on both builds, popitem() 34% to 54% fewer, and CIMultiDict lookups 15% to 39% fewer; free-threaded update() got 8% to 13% cheaper. Three case-sensitive MultiDict rows stay 5% to 6% above the old tables: del d[key] on the GIL build (the watcher check from #1551, still open), and 20-item construction and pop() on the free-threaded build.

The README and docs index quoted the pure-Python backend at "7 to 80 times" the C extension, a range that already left out the empty constructor at 105 times; they now give the average, about 40 times (geometric mean over the 20 operations: 38.5x MultiDict, 36.8x CIMultiDict).

Are there changes in behavior for the user?

No.

Is it a substantial burden for the maintainers to support this?

No.

Related issue number

Follow-up to #1597.

Checklist

  • I think the code is well written
  • Unit tests for the changes exist (N/A, docs and changelog only)
  • Documentation reflects the changes
  • If you provide code modification, please add yourself to CONTRIBUTORS.txt (N/A)
  • Add a new news fragment into the CHANGES/ folder
  • make doc-spelling passes and any new technical words are added to docs/spelling_wordlist.txt

Drafted with Claude Code (Claude Opus 5.5); pending review by @asvetlov before leaving draft.

Agent run details (optional, for reviewers)

Benchmarks: benchmarks/callgrind_driver.py on CPython 3.14.7 and 3.14.7t, fresh venv per build in a separate tree at d66879b, __pycache__ warmed with --self-check, .so timestamps checked. The previous tables' commit 6e6ac72, re-measured earlier today in the same setup, reproduced them exactly, so the comparison above is between code, not environments.
Changelog: python -Im towncrier build --draft --version 7.0.0 renders the merged entries with both issue numbers. make doc-spelling passes.

@pyba-chronographer pyba-chronographer Bot added the bot:chronographer:provided There is a change note present in this PR label Sep 26, 2026
@asvetlov
asvetlov marked this pull request as ready for review September 26, 2026 16:48
@asvetlov
asvetlov requested a review from webknjaz as a code owner September 26, 2026 16:48
@greptile-apps

greptile-apps Bot commented Sep 26, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerConfidence Score: 4/5

[Low risk] Changelog entries and benchmark documentation refresh.

The averaging-method omission is non-blocking.

Reviews (1) · Last reviewed commit: "Fold new fragments and refresh the bench..."

Comment thread README.rst Resolved
@greptile-apps

greptile-apps Bot commented Sep 26, 2026

Copy link
Copy Markdown
Contributor

Comments Outside Diff

These findings sit on lines the diff does not cover, so they could not be posted inline. Each one leaves this list once its file changes.

  • P2 Specify the averaging method behind the 40x claim ▶

    • Bug
      • README.rst:118–119 and docs/index.rst:89–90 say the pure-Python backend uses about 40 times more instructions averaged over measured operations. The published table's geometric mean supports that figure; its arithmetic mean is about 46.8x.
    • Cause
      • The new summary does not identify geometric mean as its aggregation method.
    • Fix
      • Say “geometric mean of the 20 per-operation ratios” in both locations, or state the result for the intended averaging method.

@codspeed

codspeed Bot commented Sep 26, 2026

Copy link
Copy Markdown

Merging this PR will not alter performance

✅ 310 untouched benchmarks


Comparing asvetlov:release-7.0.0-news (5ab1233) with master (d66879b)

Open in CodSpeed

@asvetlov
asvetlov merged commit 2f84475 into aio-libs:master Sep 26, 2026
62 checks passed
@asvetlov
asvetlov deleted the release-7.0.0-news branch September 26, 2026 17:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bot:chronographer:provided There is a change note present in this PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant