FYI: High CPU Usage Under Some Conditions #405
huntharo
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I have been using
oha
a lot for my projects and wanted to share that the Tokio async runtime causes a lot of CPU usage under certain conditions.You might want to consider documenting this or adding a command line arg for it.
As an example:
warp
server: https://github.com/the-benchmarker/web-frameworks/tree/master/rust/warpoha
andwarp
reach ~130k RPS out of boxoha
uses ~300% CPU to achieve this on a 12 core M2 MaxTOKIO_WORKER_THREADS=2 oha -c 100 -z 10s http://127.0.0.1:3000/user/12345667
Incidentally, I made a couple of YouTube videos about this and used
oha
to test both my framework and other frameworks. You can seeoha
's histogram dancing around for about 10-15 minutes across the two videos. I thought you might like to see that!Beta Was this translation helpful? Give feedback.
All reactions