Use ipv6 dialer, the rest are defaults

This commit is contained in:
Ben Sarmiento
2023-12-01 13:01:52 +01:00
parent 157cece5c6
commit e97b69c4f1
2 changed files with 31 additions and 39 deletions

View File

@@ -14,7 +14,7 @@ async def extract_links(url):
async def benchmark(url):
# This will still block, because subprocess.run is not async
subprocess.run(['hey', '-n', '1000', '-c', '10', url])
subprocess.run(['hey', '-n', '100000', '-c', '100', url])
url = 'http://localhost:9999/http/'
@@ -25,9 +25,9 @@ async def main():
print("BENCHMARKING " + link)
await benchmark(link)
async for inl in extract_links(link):
print("BENCHMARKING " + inl)
await benchmark(inl)
# async for inl in extract_links(link):
# print("BENCHMARKING " + inl)
# await benchmark(inl)
# Python 3.7+
asyncio.run(main())