> For fairness, all tests were run in a single-thread (GOMAXPROCS=1 for Go code) in async mode. Isn't this just hobbling Go so you can beat it? Doesn't seem like something done "for fairness" at all.
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.
Show HN: 1M rows/s from Postgres to Python
21–30 of 94 posts
Re: Show HN: 1M rows/s from Postgres to Python
#22Re: Show HN: 1M rows/s from Postgres to Python
#23Re: Show HN: 1M rows/s from Postgres to Python
#24This is really awesome, I'm going to give it a try in my latest project. Has there been any apps/sites with large amounts of i/o running this yet? Curious how reliable it is at this stage.
Re: Show HN: 1M rows/s from Postgres to Python
#25asyncpg was developed by @redcrowbar and me. Ask us anything ;)
Great work!
Re: Show HN: 1M rows/s from Postgres to Python
#26asyncpg was developed by @redcrowbar and me. Ask us anything ;)
I'd love to read the docs for the protocol itself, is it planned? Do you have a link explaining it otherwise? Great work!
Re: Show HN: 1M rows/s from Postgres to Python
#27Earlier 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.
Re: Show HN: 1M rows/s from Postgres to Python
#28would this work with django?
Re: Show HN: 1M rows/s from Postgres to Python
#29> For fairness, all tests were run in a single-thread (GOMAXPROCS=1 for Go code) in async mode. Isn't this just hobbling Go so you can beat it? Doesn't seem like something done "for fairness" at all.
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.
Re: Show HN: 1M rows/s from Postgres to Python
#30would this work with django?
Django doesn't support asyncio, it's built for blocking IO model. So, unfortunately, it's not possible to use asyncpg with it.