dom96 / httpbeast

A highly performant, multi-threaded HTTP 1.1 server written in Nim.
MIT License
450 stars 53 forks source link

Not as Fast as Java/Vertx - Configurable buffer sizss? #86

Open winrid opened 1 year ago

winrid commented 1 year ago

Recent testing shows with larger request bodies (500 bytes+), Java/Vertx is faster and has more consistent response timings. I think this is in part because with vertx I'm able to tune the TCP send and receive buffer sizes for the application - where can I find those buffers in the httpbeast source code to experiment? Looks like current buffer size is 256 bytes?

On phone, will post numbers later.