-
-
Notifications
You must be signed in to change notification settings - Fork 176
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add asyncio_tcp
benchmark
#254
Conversation
Is the goal for this benchmark to guide our future improvements, or just to highlight the improvement already made in the linked issue? We should really avoid the latter... the last thing I want is to add synthetic benchmarks just to boost our 3.12 numbers. |
It is to guide for future improvements and more importantly avoid regressions. As it currently stands there are no benchmarks for
That's true though this isn't any different from other benchmark, even if there is improvement in I am fine with keeping this in my own fork but I would prefer to have it in |
FYI if this is acceptable then I have other benchmarks to add for |
Comment which does not judge this PR: From this view,
|
I was under the impression that cost of running the benchmark is not an issue. If it is an issue then it isn't worth it and I can run it myself when necessary so no need for this in pyperformance. |
If running time is a concern, we can restrict the set of benchmarks that are run by default. That is easily done in the manifest file. Then we can do longer runs whenever we feel comfortable with the extra time by passing the In the long term, ideally we would have a solid set of workload-oriented ("macro") benchmarks that measure real-world performance (close enough, at least). This is what we would use to measure performance effectively and those results are what we would communicate to users. However, we still need the wide variety of feature-oriented ("micro") benchmarks, to help us avoid regressions and narrow down causes when we have regressions, as well as point to where possible improvements might be. See https://github.com/faster-cpython/ideas/wiki/All-About-Python-Benchmarking. Currently, pretty much all of the pyperformance benchmarks are feature-oriented ("micro"). So we have plenty of work ahead of us. (Note that the pyston benchmarks are much closer to workload-oriented and we have been incorporating them into the faster-cpython results as much as possible.) |
Ah okay, in that case, I am okay to add it. |
Final benchmark result:
I plan to merge this by weekend if there are no objections. |
@mdboom What do you think? |
I'll merge this now as python/cpython#31871 is almost done, awaiting final review and merge. We can sort out any issues with this later down the road. |
Signed-off-by: Pablo Galindo <[email protected]>
Signed-off-by: Pablo Galindo <[email protected]>
From python/cpython#91166
We can show off this optimization as part of 3.12 performance improvement :)