Hello World, req/s and logging #2024
adrianboston
started this conversation in
General
Replies: 0 comments
# for free
to join this conversation on GitHub.
Already have an account?
# to comment
-
Excellent server. The configuration is a good feature that no other seem to have.
But, comparing Hello World in each server
Hyper is pushing ~46840 req/s, 5900 kbyte/s req/s
Warp based on Hyper is ~54666 req/s, 6886 kbyte/s
Actix is ~36869 req/s, 3168 kbyte/s
Rocket is doing about ~15459 req/s, 3744 kbyte/s
IMHO, the logging is slowing it down a lot -- even when turned to a low level. The above is set to
log level: critical
so no actual printout was seen.I have not done a significant analysis on the Rocket code but allow me to put it into your ear. From previous experience with C++ Boost logging that also had levels, it seemed that strings are formatted, constructed, etc but the final printout is not conducted. A macro prevented those steps and it made a significant difference.
When set to
>> log level: normal
req/s is even lower.5785 req/s, 1401 kbyte/s
Here is the configuration for the initial
Beta Was this translation helpful? Give feedback.
All reactions