I'm fooling around with Clojure and I implemented simple server that will randomly query/insert/update/delete random data from DB on every request.
When I benchmark (wrk) server is slow (compared to similar solution) and I noticed that CPU is not maxed out, it's about ~30-40%.
I used http-kit for HTTP server, Hakiri-CP as connection pool. Added some core.async hoping to improve the speed but results are the same.
There is clearly something wrong with my code but I can't figure it out. I'm hoping if someone could throw a glimpse on my code to give a sugestion.