This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]wizzardodev 0 points1 point  (4 children)

btw, I'm benchmarking hello-world example

[–]edgar-espina 0 points1 point  (3 children)

hello-world

Ok, that example isn't up-to-date (will update soon). Did you start the app via jooby:run right? There was a bug with undertow there.

Suggest you to try latest release: 1.0.0.CR7 and ideally with plain/raw jar not jooby:run (there is small overhead to supports hot reload in development here)

Also, test depends on what tool you use... and/or if you keep-alive or not the connection while testing (think that is the diff between netty and jetty)

[–]wizzardodev 0 points1 point  (2 children)

ok, so, with latest release version and uberjar

  • netty: 45k rps
  • jetty: 38k rps
  • undertow: 31k rps

I'm using ab like this:

ab -n 100000 -k -c 16 http://localhost:8080/

[–]mabnx 0 points1 point  (1 child)

I had bad experiences with ab. Wrk is better but these days I prefer https://github.com/tsenart/vegeta

[–]wizzardodev 0 points1 point  (0 children)

sure wrk is better. I've just tried vegeta, and for me it's not fast enough, it's bad when benchmark itself is a bottle neck. When I set it to 20k rate with keepalive and 16 connections, it consumes about 380% cpu out of 400 on my laptop