2500x slowdown after switching to lnm #42

Closed
opened 2023-12-08 09:49:00 +01:00 by Jef Roosens · 1 comment

After switching to lnm, I've noticed an enermous decrease in requests/second when trying to benchmark the server application. Upon further inspection, this slowdown stems from the call to poll. In the old version, this call's runtime would scale along with the load of the server, with it being as low as 10 microseconds when on full load for a single connection.

With the new implementation, this poll call seems to always be at least 10ms (usually around 40ms) after a call has been performed. I have absolutely zero clue why this is happening, as I can't find anything different about how I call poll.

After switching to `lnm`, I've noticed an enermous decrease in requests/second when trying to benchmark the server application. Upon further inspection, this slowdown stems from the call to `poll`. In the old version, this call's runtime would scale along with the load of the server, with it being as low as 10 microseconds when on full load for a single connection. With the new implementation, this `poll` call seems to *always* be at least 10ms (usually around 40ms) after a call has been performed. I have absolutely zero clue why this is happening, as I can't find anything different about how I call `poll`.
Jef Roosens added the
Kind/Bug
label 2023-12-08 09:49:00 +01:00

I seem to have fixed this issue, but I'm stil very curious as to what caused it.

I seem to have fixed this issue, but I'm stil very curious as to what caused it.
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: Chewing_Bever/lander#42
There is no content yet.