Earlier quoted context omitted.
Python and nodejs applications are usually deployed in a multiprocess configuration (and Go apps without GOMAXPROCS). So in production, applications in all of those languages use all CPU cores. For benchmarks, we didn't want to complicate things with multi-process setup, the idea was to compare the raw performance of all drivers.
"usually deployed" where? Every Python app I've seen in Prod don't use multi process to bypass the limitation of GIL/#cores.
Show HN: 1M rows/s from Postgres to Python
81–90 of 94 posts
Re: Show HN: 1M rows/s from Postgres to Python
#82Re: Show HN: 1M rows/s from Postgres to Python
#83Re: Show HN: 1M rows/s from Postgres to Python
#84Re: Show HN: 1M rows/s from Postgres to Python
#85What about the complexity of the rows? For instance, how many columns per row?
Re: Show HN: 1M rows/s from Postgres to Python
#86Very excited to try out your code - thanks for sharing it.
Re: Show HN: 1M rows/s from Postgres to Python
#87At 3.7GHz that's roughly 3700 clock cycles per row. With something that low, I'd be really interested to see a breakdown of how many cycles were spent doing what.
[1] https://github.com/MagicStack/asyncpg/blob/master/asyncpg/pr...
Re: Show HN: 1M rows/s from Postgres to Python
#88Using Cython means you don't/can't use Pypy? Was that something you considered, e.g. with psycopg2cffi or a pure-python driver? It seems to be the defacto performant runtime for Python, and since performance is something you guys obviously care a lot about, I'm surprised it hasn't been mentioned in this thread. Very excited to try out your code - thanks for sharing it.
That said, once PyPy supports 3.5, we will consider making a CFFI binding.
Re: Show HN: 1M rows/s from Postgres to Python
#89Using Cython means you don't/can't use Pypy? Was that something you considered, e.g. with psycopg2cffi or a pure-python driver? It seems to be the defacto performant runtime for Python, and since performance is something you guys obviously care a lot about, I'm surprised it hasn't been mentioned in this thread. Very excited to try out your code - thanks for sharing it.
Re: Show HN: 1M rows/s from Postgres to Python
#90Earlier quoted context omitted.
> I have no intention to stifle anything, I'm only raising the point that this seems like a really new driver and it's likely that it would take a while before it approaches the stability of psycopg2. That is, the stability of psycogp2 is not to be so lightly thrown in the trash. We in no way question the merits and the stability if psycopg2. We created asyncpg to solve the challenges we face in the development of Ed…
The tone used is indeed not the proper one, but while I'm a big asyncio advocate, I think it would be beneficial if you would split your project in 2, separating the IO from the rest (like hyper does https://github.com/Lukasa/hyper ). The rational being: - Python is not just async. It currently majoritarly sync. A lot of the community would benefit from your awesome project; - You'd have contrib from the async and sy…
I'd like to do that, but we don't have resources. If we had a couple capable devs volunteering on the GH to do this, I'd be glad to review patches and guide the development.