René's URL Explorer Experiment


Title: stdin.drain is very slow on some platforms · Issue #384 · python/asyncio · GitHub

Open Graph Title: stdin.drain is very slow on some platforms · Issue #384 · python/asyncio

X Title: stdin.drain is very slow on some platforms · Issue #384 · python/asyncio

Description: I'm on Python 3.5.2, with the following code: #!/usr/bin/env python3 import asyncio import time import logging logging.basicConfig(level='DEBUG') async def drain_time(length): proc = await asyncio.create_subprocess_exec('/bin/cat', stdin...

Open Graph Description: I'm on Python 3.5.2, with the following code: #!/usr/bin/env python3 import asyncio import time import logging logging.basicConfig(level='DEBUG') async def drain_time(length): proc = await asyncio....

X Description: I'm on Python 3.5.2, with the following code: #!/usr/bin/env python3 import asyncio import time import logging logging.basicConfig(level='DEBUG') async def drain_time(length): proc = aw...

Opengraph URL: https://github.com/python/asyncio/issues/384

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"stdin.drain is very slow on some platforms","articleBody":"I'm on Python 3.5.2, with the following code:\n\n``` python\n#!/usr/bin/env python3\n\nimport asyncio\nimport time\nimport logging\n\nlogging.basicConfig(level='DEBUG')\n\nasync def drain_time(length):\n    proc = await asyncio.create_subprocess_exec('/bin/cat',\n        stdin=asyncio.subprocess.PIPE,\n        stdout=asyncio.subprocess.DEVNULL,\n        stderr=asyncio.subprocess.DEVNULL,\n    )\n\n    data = b'0' * length\n    proc.stdin.write(data)\n    t0 = time.time()\n    await proc.stdin.drain()\n    r = time.time() - t0\n    proc.stdin.close()\n    await proc.wait()\n    return r\n\nasync def main():\n    for i in range(5, 17):\n        for j in range(1, 2):\n            size = j * 10**i\n            print('{:.0e}'.format(size), await drain_time(size))\n\nasyncio.get_event_loop().run_until_complete(main())\n```\n\non an Ubuntu server (this seems ok)\n\n```\nDEBUG:asyncio:Using selector: EpollSelector\n1e+05 7.3909759521484375e-06\n2e+05 6.4373016357421875e-06\n3e+05 0.000118255615234375\n1e+06 0.0002932548522949219\n2e+06 0.0005526542663574219\n3e+06 0.0019674301147460938\n1e+07 0.023283720016479492\n2e+07 0.004916667938232422\n3e+07 0.16347408294677734\n1e+08 0.024138450622558594\n2e+08 0.04891180992126465\n3e+08 0.07430100440979004\n```\n\non an Archlinux: (more or less ok)\n\n```\nDEBUG:asyncio:Using selector: EpollSelector\n1e+05 5.245208740234375e-06\n2e+05 4.291534423828125e-06\n3e+05 8.797645568847656e-05\n1e+06 0.0005102157592773438\n2e+06 0.0015668869018554688\n3e+06 0.0022423267364501953\n1e+07 0.01090097427368164\n2e+07 0.1207735538482666\n3e+07 0.2826368808746338\n1e+08 0.8428807258605957\n2e+08 0.029124975204467773\n3e+08 3.3120124340057373\n1e+09 2.904399871826172\n2e+09 13.772144079208374\n3e+09 16.17424488067627\n```\n\non osx: (not ok)\n\n```\nDEBUG:asyncio:Using selector: KqueueSelector\n1e+05 0.0005750656127929688\n2e+05 0.0010769367218017578\n3e+05 0.005205869674682617\n1e+06 0.007627964019775391\n2e+06 0.022066831588745117\n3e+06 0.05894899368286133\n1e+07 1.633073091506958\n2e+07 6.287441968917847\n3e+07 15.285433053970337\n1e+08 178.50560998916626\n```\n\nAny idea what could be causing this?\n","author":{"url":"https://github.com/arthurdarcet","@type":"Person","name":"arthurdarcet"},"datePublished":"2016-07-22T09:06:16.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":5},"url":"https://github.com/384/asyncio/issues/384"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:34ee2f4b-68d5-cf6f-5814-b560da4f6b21
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idC15A:26A866:111FDE2:17FE1D2:696A3A04
html-safe-nonce5f4ecee2e314807bda048663b868698432dd98f63aa9885d610e060a8f851fd1
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDMTVBOjI2QTg2NjoxMTFGREUyOjE3RkUxRDI6Njk2QTNBMDQiLCJ2aXNpdG9yX2lkIjoiODg5MjI5NzY1MDAwMjA4MjMwOCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmacb487636023126931072ea9c7f1ee94dc6736f9b82e5a8780f2b51f7735ae79ed
hovercard-subject-tagissue:167001865
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/python/asyncio/384/issue_layout
twitter:imagehttps://opengraph.githubassets.com/20fefb6382199f6759fd7543e3ca51c51f7c2f54c473a1a65c2e2f5757b5f69d/python/asyncio/issues/384
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/20fefb6382199f6759fd7543e3ca51c51f7c2f54c473a1a65c2e2f5757b5f69d/python/asyncio/issues/384
og:image:altI'm on Python 3.5.2, with the following code: #!/usr/bin/env python3 import asyncio import time import logging logging.basicConfig(level='DEBUG') async def drain_time(length): proc = await asyncio....
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamearthurdarcet
hostnamegithub.com
expected-hostnamegithub.com
None321736bfdb3f591415ae895a0459bec204b26a76caf47ba5c980634cfacc4538
turbo-cache-controlno-preview
go-importgithub.com/python/asyncio git https://github.com/python/asyncio.git
octolytics-dimension-user_id1525981
octolytics-dimension-user_loginpython
octolytics-dimension-repository_id33739295
octolytics-dimension-repository_nwopython/asyncio
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id33739295
octolytics-dimension-repository_network_root_nwopython/asyncio
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release7a9163cefd1ea4bd06f8eb7c082f43e4e53f626f
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/python/asyncio/issues/384#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fasyncio%2Fissues%2F384
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
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
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://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/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fasyncio%2Fissues%2F384
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=python%2Fasyncio
Reloadhttps://github.com/python/asyncio/issues/384
Reloadhttps://github.com/python/asyncio/issues/384
Reloadhttps://github.com/python/asyncio/issues/384
python https://github.com/python
asynciohttps://github.com/python/asyncio
Please reload this pagehttps://github.com/python/asyncio/issues/384
Notifications https://github.com/login?return_to=%2Fpython%2Fasyncio
Fork 185 https://github.com/login?return_to=%2Fpython%2Fasyncio
Star 1.1k https://github.com/login?return_to=%2Fpython%2Fasyncio
Code https://github.com/python/asyncio
Issues 76 https://github.com/python/asyncio/issues
Pull requests 10 https://github.com/python/asyncio/pulls
Actions https://github.com/python/asyncio/actions
Projects 0 https://github.com/python/asyncio/projects
Wiki https://github.com/python/asyncio/wiki
Security Uh oh! There was an error while loading. Please reload this page. https://github.com/python/asyncio/security
Please reload this pagehttps://github.com/python/asyncio/issues/384
Insights https://github.com/python/asyncio/pulse
Code https://github.com/python/asyncio
Issues https://github.com/python/asyncio/issues
Pull requests https://github.com/python/asyncio/pulls
Actions https://github.com/python/asyncio/actions
Projects https://github.com/python/asyncio/projects
Wiki https://github.com/python/asyncio/wiki
Security https://github.com/python/asyncio/security
Insights https://github.com/python/asyncio/pulse
stdin.drain is very slow on some platformshttps://github.com/python/asyncio/issues/384#top
https://github.com/arthurdarcet
https://github.com/arthurdarcet
arthurdarcethttps://github.com/arthurdarcet
on Jul 22, 2016https://github.com/python/asyncio/issues/384#issue-167001865
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.