Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Question: performance figures #124

Open
psantosl opened this issue Apr 25, 2020 · 4 comments
Open

Question: performance figures #124

psantosl opened this issue Apr 25, 2020 · 4 comments

Comments

@psantosl
Copy link

Hi,

Do you have any performance figures comparing libutp to TCP?

I've found this https://maidsafe.atlassian.net/browse/MAID-3221?page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel and the results mostly match what we've got running ucat ourselves, libutp being about half fast as TCP. But I'm shocked by the results, I expected libutp to be much faster, so I bet ucat is not valid for a real benchmark, am I mistaken?

@Seeker2
Copy link

Seeker2 commented May 29, 2021

Often libtorrent-based uTP struggles to reach half its TCP speeds, so yeah...those are valid results.

@anacrolix
Copy link
Contributor

I maintain a Go torrent client that uses libutp extensively. I can anecdotally report from my own experience, and that of others that uTP does not necessarily provide the same throughput that TCP can. Of course there are other benefits and reasons for this which are reasonable.

@the8472
Copy link

the8472 commented Jun 11, 2021

Is testing via loopback a realistic though? ~0 latency, very high bandwidth and packet losses that don't reflect the behavior of physical links. I guess it stresses different parts compared to WAN connections for which utp is intended.

That said, those speeds still seem low for such an idealized connection.

@Seeker2
Copy link

Seeker2 commented Jun 11, 2021

@the8472 I've tested with someone a couple continents away with some built-in packet loss and very high latency.
I've tested with ordinary torrents to people on similar ISPs as myself.
I've even tested on other computers and 2 different ISPs in my own house.
uTP performance on libtorrent (when using Windows!) is not on par with TCP speeds in ANY of those tests.

I resorted to using mostly (but not always) 127.0.0.1 local loopback because it's easy and quick to set up compared to the coordination needed to do the others.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants