3 ms·
I'm pleasantly surprised to see pypy beat go by an order of magnitude in the select_default benchmarks. Could it be a bug, or is it real?
by pritambaral 12y ago
I'm pleasantly surprised to see pypy beat go by an order of magnitude in the select_default benchmarks. Could it be a bug, or is it real?
- rgalanakis 12y agoThe benchmarks weren't really fair. Go was using it's reflection-based select. I will publish some new benchmarks (with an idiomatic Go switch select) soon, since someone is finishing a PR with that change. I am not sure what we'll find but I am sure Go's performance will improve.
- jerf 12y agoEven if it is real, Go is otherwise going to stomp Python performance-wise. That's not a statement of pride or fanboyism or whatever... it's just the nature of the two languages. However, I have recommended and continue to recommend that if A: you are using Python B: you want something Go-like and C: Python's performance is currently good enough for you, Stackless/gevent/perhaps this library is a much better solution than translating tons of code to another language. You can get a lot of the bang-for-the-buck with this approach without incurring huge rewrite costs. If you're starting from scratch with Go-like needs, Go is a better starting place IMHO, but Stackless/gevent is definitely "good enough", no sarcasm. It is, IMHO, a very underestimated library in the Python community. And yes, I know lots of people know it exists... this is a statement of my yet-higher opinion of it.