Replies: 1 comment
-
Sorry, nothing comes to mind. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I came here from tokio-rs/axum#902, since the issue does not seem to be with Axum itself. I also managed to reproduce similar results with actix-web as well.
I'm using a MacBook Pro 16" (Apple Silicon M1 Max) and trying the following simple example:
Running in debug, and then using
hey
to measure performance:Under debug build, I get very decent results:
However switching to release build causes performance to degrade considerably, at least as far as total run time goes:
While the time spent in each request indeed became shorter (from 0.009 on average to 0.001-0.002s on average), the overall time is twice as long, and the number of requests per second drops as well.
Any ideas on why this behavior could be happening?
Beta Was this translation helpful? Give feedback.
All reactions