Ktor on netty is fast, but still there is overhead...
# ktor
e
Ktor on netty is fast, but still there is overhead and it’s twice slower than flat netty according to benchmarks https://www.techempower.com/benchmarks/#section=test&runid=a0d6e357-e8e3-4a5b-9ef0-6175ed824b20&hw=ph&test=json&l=xan9tr-1 Are you going to improve performance and reduce overhead? And ktor-cio shows poor performance, x5 slower than ktor-netty, isn’t it supposed to be faster?
o
We are well aware about this, that’s the reason we submitted it to TFB in the first place. There are a number of reasons for performance being less than ideal, and we plan to address them for both Netty and CIO as soon as we have some time (after v1.0). But the raw performance while important is rarely what makes the whole web application slow. It’s mostly DB, serialization, business logic, etc.
👍 2
Also, comparing to raw Netty is not fair 🙂 If you wish to code against Netty’s async APIs something less trivial than simple text transfer, include routing, etc. Well… I don’t 🙂
e
it does matter if you building proxies, application firewalls and this kind of applications anyway, thanks 🙂
o
Well, may be Ktor is not the ideal solution if all you want to do is push bytes left and right with some conditional filtering. I wish it can be fast enough, but it’s not there yet.
e
it is faster now than most of golang frameworks btw
🔥 4
o
Well, it is, but fastest go framework is too fast 🙂
image.png
😮 1
f
Well it has "fast" in its name, that's basically cheating