tokio::io::copy slower than std io::copy #6553
Replies: 1 comment
-
I explain this on the URLO thread that you also posted. |
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
Uh oh!
There was an error while loading. Please reload this page.
-
I did a file copy speed test between these 2 and seems
tokio::io::copy
is much slower than sync stdio::copy
I noticed this while implementing my own tokio
AsyncWrite
.Here are the results on my machine for a file of
894MB
here is the code I used playground
I then tried
tokio-uring
, Indeed better but still not close to stdTested writing 840 MB of content to a file
I understand std is using
copy_file_range
syscall but why is it such a big difference and can't it be improved?Beta Was this translation helpful? Give feedback.
All reactions