René's URL Explorer Experiment


Title: Add GC benchmarks and Python implementation filtering by mfalco-oai · Pull Request #496 · python/pyperformance · GitHub

Open Graph Title: Add GC benchmarks and Python implementation filtering by mfalco-oai · Pull Request #496 · python/pyperformance

X Title: Add GC benchmarks and Python implementation filtering by mfalco-oai · Pull Request #496 · python/pyperformance

Description: This adds seven benchmarks for GC paths that are not well covered by the existing suite: gc_collect_large uses 10,000 independent cycles, while gc_collect_self_lists uses a minimal synthetic graph to expose per-object collection overhead. gc_weakref_recheck, gc_resurrection_partial, and gc_resurrection_full cover rechecks after a weakref callback, partial resurrection, and full resurrection. btree_gc_only_frozen covers full collection with a frozen startup heap. gc_tuple_survivors times collection of fresh retained tuples containing only None. The new python_implementations metadata lets benchmarks declare which Python implementations they support. Selection checks the version and implementation of the target interpreter. Benchmarks that do not support the target implementation are reported and skipped. The frozen and resurrection cases are CPython-only; the large-collection and tuple cases also support PyPy. Related to python/cpython#159437.

Open Graph Description: This adds seven benchmarks for GC paths that are not well covered by the existing suite: gc_collect_large uses 10,000 independent cycles, while gc_collect_self_lists uses a minimal synthetic graph...

X Description: This adds seven benchmarks for GC paths that are not well covered by the existing suite: gc_collect_large uses 10,000 independent cycles, while gc_collect_self_lists uses a minimal synthetic graph...

Opengraph URL: https://github.com/python/pyperformance/pull/496

X: @github

direct link

Domain: github.com

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:077decfb-737e-c47d-5c55-e53e9e4b48ed
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idD04C:154D88:2AA3672:368CAB1:6B01EC5F
html-safe-nonce9637b8c299515d5909445d76cb8f0cc233ee40511d8fa7c59567fed537823bd6
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEMDRDOjE1NEQ4ODoyQUEzNjcyOjM2OENBQjE6NkIwMUVDNUYiLCJ2aXNpdG9yX2lkIjoiMTE4MDEwMjczNTIxNTg0ODU0MyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac58f86a61975c80ca3353d5f91676ab72c7dc205089392d092fbaa1b2cf0f2bcc
hovercard-subject-tagpull_request:4960261442
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/python/pyperformance/pull/496/files
twitter:imagehttps://avatars.githubusercontent.com/u/272898724?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/272898724?s=400&v=4
og:image:altThis adds seven benchmarks for GC paths that are not well covered by the existing suite: gc_collect_large uses 10,000 independent cycles, while gc_collect_self_lists uses a minimal synthetic graph...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/python/pyperformance git https://github.com/python/pyperformance.git
octolytics-dimension-user_id1525981
octolytics-dimension-user_loginpython
octolytics-dimension-repository_id65949828
octolytics-dimension-repository_nwopython/pyperformance
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id65949828
octolytics-dimension-repository_network_root_nwopython/pyperformance
turbo-body-classeslogged-out env-production page-responsive full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release423dbb54c5e7bfecc838eb387c1435eb3d0e760d
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/python/pyperformance/pull/496/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fpyperformance%2Fpull%2F496%2Ffiles
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fpyperformance%2Fpull%2F496%2Ffiles
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=python%2Fpyperformance
Reloadhttps://github.com/python/pyperformance/pull/496/files
Reloadhttps://github.com/python/pyperformance/pull/496/files
Reloadhttps://github.com/python/pyperformance/pull/496/files
pythonhttps://github.com/python
pyperformancehttps://github.com/python/pyperformance
Codehttps://github.com/python/pyperformance
Issues53 (53)https://github.com/python/pyperformance/issues
Pull requests34 (34)https://github.com/python/pyperformance/pulls
Actionshttps://github.com/python/pyperformance/actions
Projectshttps://github.com/python/pyperformance/projects
Security and qualityhttps://github.com/python/pyperformance/security
Insightshttps://github.com/python/pyperformance/insights
Sign up for GitHub https://github.com/signup?return_to=%2Fpython%2Fpyperformance%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fpython%2Fpyperformance%2Fissues%2Fnew%2Fchoose
mfalco-oaihttps://github.com/mfalco-oai
python:mainhttps://github.com/python/pyperformance/tree/main
mfalco-oai:mfalco-oai/gh-159437-gc-benchmarkshttps://github.com/mfalco-oai/pyperformance/tree/mfalco-oai/gh-159437-gc-benchmarks
Conversation 2 https://github.com/python/pyperformance/pull/496
Commits 2 https://github.com/python/pyperformance/pull/496/commits
Checks 19 https://github.com/python/pyperformance/pull/496/checks
Files changed https://github.com/python/pyperformance/pull/496/files
Please reload this pagehttps://github.com/python/pyperformance/pull/496/files
Add GC benchmarks and Python implementation filtering https://github.com/python/pyperformance/pull/496/files#top
Show all changes 2 commits https://github.com/python/pyperformance/pull/496/files
c0aeffb Support benchmark selection by Python implementation mfalco-oai Oct 21, 2026 https://github.com/python/pyperformance/pull/496/commits/c0aeffb4070658f39560a06652c11e126dda5fc2
6e9d6b6 Add GC benchmarks for large heaps and collection phases mfalco-oai Oct 21, 2026 https://github.com/python/pyperformance/pull/496/commits/6e9d6b6164613a711a1833f2e073fde186dd9121
Clear filters https://github.com/python/pyperformance/pull/496/files
Please reload this pagehttps://github.com/python/pyperformance/pull/496/files
Please reload this pagehttps://github.com/python/pyperformance/pull/496/files
benchmarks.rst https://github.com/python/pyperformance/pull/496/files#diff-06f408aca9c0caf57b15169bc2f749ed556bcf460a6966a74e61dd6304aa5d2a
custom_benchmarks.rst https://github.com/python/pyperformance/pull/496/files#diff-ef9673efd18b308f4707acbc003396b8dbd6291c582b0bb51a91ea40c7f79de1
usage.rst https://github.com/python/pyperformance/pull/496/files#diff-e2f32bf1fe37315337b25b0d5efe2a8dde59b0f5ea2c3d6fddcf3f8b6d0fe9d1
_benchmark.py https://github.com/python/pyperformance/pull/496/files#diff-08194eaefd215075165564734fb30e9868e7c4b8f5c7bfc57294c32d21dcc3cf
_benchmark_metadata.py https://github.com/python/pyperformance/pull/496/files#diff-71569863b6c2ec4af655ac7c8a3a9af1e12f7a4ee2d6c571d74f696c880949c8
cli.py https://github.com/python/pyperformance/pull/496/files#diff-107aeb5b8ce3134f7199d902a231212114d0fb26c12cd191067061d63be57475
commands.py https://github.com/python/pyperformance/pull/496/files#diff-ed8495a8737f359ec47d7efca6e234fa871a8653abfa5f014816d1be7cf8c3a5
MANIFEST https://github.com/python/pyperformance/pull/496/files#diff-2dc2836aea524883ea247e75c5a3cf1e2bb6840e6a8c9d0c24f235a666d7712b
bm_btree_gc_only_frozen.toml https://github.com/python/pyperformance/pull/496/files#diff-f0e69a4e126003a91f273a68697589e3906d8e593acc108539795444594c5e67
run_frozen_benchmark.py https://github.com/python/pyperformance/pull/496/files#diff-8cdc99a5698cd11e348bc41304e54fc5aa91f0a4c023df02010e7fb6f898b0a9
bm_gc_collect_large.toml https://github.com/python/pyperformance/pull/496/files#diff-dae3ff7b148db5c3e771fe60f732ff938cb13d80dd4efa9cca5d1d12e425b007
bm_gc_collect_self_lists.toml https://github.com/python/pyperformance/pull/496/files#diff-505963138eda08e0bbc308fbfb42b4ac8dd04e638eff126661e7d105ae9c581c
run_large_benchmark.py https://github.com/python/pyperformance/pull/496/files#diff-f551258fb20c0bd0bffe5a4895983461faf3fdd1c1996d786594606ab40bf55c
run_self_lists_benchmark.py https://github.com/python/pyperformance/pull/496/files#diff-5e7b00184c4aea48e97d4ba4d56b0abdfc8a67f2e7d70c18fb54c7400a249364
bm_gc_resurrection_full.toml https://github.com/python/pyperformance/pull/496/files#diff-177a174de330d3f4a560057162bf8fba9be9e9e3c828137d3ff851bb727adb8c
bm_gc_resurrection_partial.toml https://github.com/python/pyperformance/pull/496/files#diff-2b37ed99d8a6d287034929d3b64df34df972505e1958d7c299476e5d17f6ea6b
bm_gc_weakref_recheck.toml https://github.com/python/pyperformance/pull/496/files#diff-3d738e7518e6a18e832a4f973cb37db03ebfd25f619858110e1b89341758822e
pyproject.toml https://github.com/python/pyperformance/pull/496/files#diff-27c788d21ba38cf4273a08a31cc8a3394bf8eff048fbcf2d6a227b327d9c0446
run_benchmark.py https://github.com/python/pyperformance/pull/496/files#diff-f23694b7c409d46d222e9545f273a627b22e9d8d81f50dcca1150ee8dd516065
pyproject.toml https://github.com/python/pyperformance/pull/496/files#diff-e8f57f24cb46566c77668741154687442cf5b4848a34a0a8a2f1a74ec58218e1
run_benchmark.py https://github.com/python/pyperformance/pull/496/files#diff-a53a8b3f598c41c6f9708fc13084f91c58c70da27771bc943eff29176ec89957
test_benchmark_compatibility.py https://github.com/python/pyperformance/pull/496/files#diff-f874c0532f73678205c2f891cbd569ed0044dc6ee99c3eb37779f2f8812eee34
doc/benchmarks.rsthttps://github.com/python/pyperformance/pull/496/files#diff-06f408aca9c0caf57b15169bc2f749ed556bcf460a6966a74e61dd6304aa5d2a
View file https://github.com/python/pyperformance/blob/6e9d6b6164613a711a1833f2e073fde186dd9121/doc/benchmarks.rst
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/pyperformance/pull/496/{{ revealButtonHref }}
https://github.com/python/pyperformance/pull/496/files#diff-06f408aca9c0caf57b15169bc2f749ed556bcf460a6966a74e61dd6304aa5d2a
https://github.com/python/pyperformance/pull/496/files#diff-06f408aca9c0caf57b15169bc2f749ed556bcf460a6966a74e61dd6304aa5d2a
https://github.com/python/pyperformance/pull/496/files#diff-06f408aca9c0caf57b15169bc2f749ed556bcf460a6966a74e61dd6304aa5d2a
https://github.com/python/pyperformance/pull/496/files#diff-06f408aca9c0caf57b15169bc2f749ed556bcf460a6966a74e61dd6304aa5d2a
doc/custom_benchmarks.rsthttps://github.com/python/pyperformance/pull/496/files#diff-ef9673efd18b308f4707acbc003396b8dbd6291c582b0bb51a91ea40c7f79de1
View file https://github.com/python/pyperformance/blob/6e9d6b6164613a711a1833f2e073fde186dd9121/doc/custom_benchmarks.rst
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/pyperformance/pull/496/{{ revealButtonHref }}
https://github.com/python/pyperformance/pull/496/files#diff-ef9673efd18b308f4707acbc003396b8dbd6291c582b0bb51a91ea40c7f79de1
doc/usage.rsthttps://github.com/python/pyperformance/pull/496/files#diff-e2f32bf1fe37315337b25b0d5efe2a8dde59b0f5ea2c3d6fddcf3f8b6d0fe9d1
View file https://github.com/python/pyperformance/blob/6e9d6b6164613a711a1833f2e073fde186dd9121/doc/usage.rst
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/pyperformance/pull/496/{{ revealButtonHref }}
https://github.com/python/pyperformance/pull/496/files#diff-e2f32bf1fe37315337b25b0d5efe2a8dde59b0f5ea2c3d6fddcf3f8b6d0fe9d1
https://github.com/python/pyperformance/pull/496/files#diff-e2f32bf1fe37315337b25b0d5efe2a8dde59b0f5ea2c3d6fddcf3f8b6d0fe9d1
pyperformance/_benchmark.pyhttps://github.com/python/pyperformance/pull/496/files#diff-08194eaefd215075165564734fb30e9868e7c4b8f5c7bfc57294c32d21dcc3cf
View file https://github.com/python/pyperformance/blob/6e9d6b6164613a711a1833f2e073fde186dd9121/pyperformance/_benchmark.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/pyperformance/pull/496/{{ revealButtonHref }}
https://github.com/python/pyperformance/pull/496/files#diff-08194eaefd215075165564734fb30e9868e7c4b8f5c7bfc57294c32d21dcc3cf
https://github.com/python/pyperformance/pull/496/files#diff-08194eaefd215075165564734fb30e9868e7c4b8f5c7bfc57294c32d21dcc3cf
pyperformance/_benchmark_metadata.pyhttps://github.com/python/pyperformance/pull/496/files#diff-71569863b6c2ec4af655ac7c8a3a9af1e12f7a4ee2d6c571d74f696c880949c8
View file https://github.com/python/pyperformance/blob/6e9d6b6164613a711a1833f2e073fde186dd9121/pyperformance/_benchmark_metadata.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/pyperformance/pull/496/{{ revealButtonHref }}
https://github.com/python/pyperformance/pull/496/files#diff-71569863b6c2ec4af655ac7c8a3a9af1e12f7a4ee2d6c571d74f696c880949c8
https://github.com/python/pyperformance/pull/496/files#diff-71569863b6c2ec4af655ac7c8a3a9af1e12f7a4ee2d6c571d74f696c880949c8
https://github.com/python/pyperformance/pull/496/files#diff-71569863b6c2ec4af655ac7c8a3a9af1e12f7a4ee2d6c571d74f696c880949c8
https://github.com/python/pyperformance/pull/496/files#diff-71569863b6c2ec4af655ac7c8a3a9af1e12f7a4ee2d6c571d74f696c880949c8
https://github.com/python/pyperformance/pull/496/files#diff-71569863b6c2ec4af655ac7c8a3a9af1e12f7a4ee2d6c571d74f696c880949c8
pyperformance/cli.pyhttps://github.com/python/pyperformance/pull/496/files#diff-107aeb5b8ce3134f7199d902a231212114d0fb26c12cd191067061d63be57475
View file https://github.com/python/pyperformance/blob/6e9d6b6164613a711a1833f2e073fde186dd9121/pyperformance/cli.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/pyperformance/pull/496/{{ revealButtonHref }}
https://github.com/python/pyperformance/pull/496/files#diff-107aeb5b8ce3134f7199d902a231212114d0fb26c12cd191067061d63be57475
https://github.com/python/pyperformance/pull/496/files#diff-107aeb5b8ce3134f7199d902a231212114d0fb26c12cd191067061d63be57475
https://github.com/python/pyperformance/pull/496/files#diff-107aeb5b8ce3134f7199d902a231212114d0fb26c12cd191067061d63be57475
https://github.com/python/pyperformance/pull/496/files#diff-107aeb5b8ce3134f7199d902a231212114d0fb26c12cd191067061d63be57475
https://github.com/python/pyperformance/pull/496/files#diff-107aeb5b8ce3134f7199d902a231212114d0fb26c12cd191067061d63be57475
pyperformance/commands.pyhttps://github.com/python/pyperformance/pull/496/files#diff-ed8495a8737f359ec47d7efca6e234fa871a8653abfa5f014816d1be7cf8c3a5
View file https://github.com/python/pyperformance/blob/6e9d6b6164613a711a1833f2e073fde186dd9121/pyperformance/commands.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/pyperformance/pull/496/{{ revealButtonHref }}
https://github.com/python/pyperformance/pull/496/files#diff-ed8495a8737f359ec47d7efca6e234fa871a8653abfa5f014816d1be7cf8c3a5
https://github.com/python/pyperformance/pull/496/files#diff-ed8495a8737f359ec47d7efca6e234fa871a8653abfa5f014816d1be7cf8c3a5
pyperformance/data-files/benchmarks/MANIFESThttps://github.com/python/pyperformance/pull/496/files#diff-2dc2836aea524883ea247e75c5a3cf1e2bb6840e6a8c9d0c24f235a666d7712b
View file https://github.com/python/pyperformance/blob/6e9d6b6164613a711a1833f2e073fde186dd9121/pyperformance/data-files/benchmarks/MANIFEST
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/pyperformance/pull/496/{{ revealButtonHref }}
https://github.com/python/pyperformance/pull/496/files#diff-2dc2836aea524883ea247e75c5a3cf1e2bb6840e6a8c9d0c24f235a666d7712b
https://github.com/python/pyperformance/pull/496/files#diff-2dc2836aea524883ea247e75c5a3cf1e2bb6840e6a8c9d0c24f235a666d7712b
pyperformance/data-files/benchmarks/bm_btree/bm_btree_gc_only_frozen.tomlhttps://github.com/python/pyperformance/pull/496/files#diff-f0e69a4e126003a91f273a68697589e3906d8e593acc108539795444594c5e67
View file https://github.com/python/pyperformance/blob/6e9d6b6164613a711a1833f2e073fde186dd9121/pyperformance/data-files/benchmarks/bm_btree/bm_btree_gc_only_frozen.toml
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/pyperformance/pull/496/{{ revealButtonHref }}
Please reload this pagehttps://github.com/python/pyperformance/pull/496/files
Please reload this pagehttps://github.com/python/pyperformance/pull/496/files
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.