Skip to content
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

benchmarking, profiling #2

Open
teepark opened this issue Jun 9, 2014 · 0 comments
Open

benchmarking, profiling #2

teepark opened this issue Jun 9, 2014 · 0 comments

Comments

@teepark
Copy link

teepark commented Jun 9, 2014

Hello again, Andy!

Just to call your attention to this, I put together a benchmarking network server in a couple of different greenlet I/O libraries, including vanilla: https://github.com/teepark/puffin/blob/master/bench_server.py (and the bench shell script).

You've inspired me to try and tighten up greenhouse's scheduler core, and in that "puffin" experiment I'm managing to (just) beat gevent on networking code with pure-python-to-epoll.

The bench_server.py server is intended to be as simple a networking test as possible, but still be usable against an http-based benchmarking tool (so for instance it goes straight to the socket and blindly reads until '\r\n\r\n', not wasting time doing anything but networking).

It can also activate cProfile during the bench run, but that's less illuminating than I'd hoped. Total time per call shows up as 0.000 for all functions in all libraries. It basically just comes down to python interpreter overhead, so the least python code wins.

Hope you find it helpful.
--travis

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant