Why is db_postgres so slow?

2022-08-16 Thread rishavs
> The bottleneck here is likely that db_postgres blocks. I would give > @treeform's async library a try. I don't think it will help considering that > @treeform's lib wraps db_postgres itself, instead of libpq > So these benchmarks are largely meaningless when it comes to how fast a > language

Why is db_postgres so slow?

2022-08-16 Thread rishavs
The benchmark numbers are here; [https://www.techempower.com/benchmarks/#section=test&runid=ecfbe3c9-f577-4836-9403-41f9120dfc6e&l=zdk8an-1kn](https://www.techempower.com/benchmarks/#section=test&runid=ecfbe3c9-f577-4836-9403-41f9120dfc6e&l=zdk8an-1kn) nim stdlib is showing 0.6% of the top framew

Why is db_postgres so slow?

2022-08-15 Thread rishavs
Hey folks I want to use Nim for server side development but the slow speed of db_postgres is making me hesitant. in the Techempower benchmarks, the db queries for nim stdlib have been benchmarked as being extremely slow. I am opening this forum post to discuss why the postgres driver is so slow

techempower entry for nim stdlib http server

2021-08-01 Thread rishavs
Can we not just wrap libpq and use it for the db connections, instead of trying to create one from scratch? I believe it has all the bells and whistles that postgres supports.

techempower entry for nim stdlib http server

2021-07-28 Thread rishavs
i had actually added prologue one in the past but stopped with just json & plaintext due to lack of time and as xflywind (prologue creator) was still optimizing the framework code. But yeah, it would be great if we add all the tests for the other nim frameworks. Its easy enough.

techempower entry for nim stdlib http server

2021-07-28 Thread rishavs
Hey folks I just added the nim stdlib http server implementation into the techempower benchmark. the next test onwards it should get included into the main benchmark. as I am not a nim expert, my impleme