vibe.d + dpq2 + json trick
Denis Feklushkin
feklushkin.denis at gmail.com
Wed Aug 20 14:10:31 UTC 2025
On Tuesday, 19 August 2025 at 14:09:09 UTC, Robert Schadek wrote:
> Sorry for the gigantic code dump,
I made some code rework:
https://gist.github.com/denizzzka/124dc3827a10d29dd04cb7331f4c4ff8
Previously there a pool of connections was created for each
worker - this is unnecessary, it is better when the pool is
common for all workers.
Also, I added PREPARE, row-by-row read for /normal (just for
check if it helps) and replaced "id" by [0] on column accessing
code
Nothing really helped
My measurements:
ab -n 10000 -c 10 localhost:8080/oldschool Requests per second:
675.46 [#/sec] (mean)
ab -n 10000 -c 10 localhost:8080/normal Requests per second:
163.55 [#/sec] (mean)
ab -n 10000 -c 10 localhost:8080/special Requests per second:
3636.42 [#/sec] (mean)
More information about the Digitalmars-d
mailing list