DiegoRBaquero / BTorrent

:globe_with_meridians: Fully-featured WebTorrent Client
https://btorrent.xyz
MIT License
549 stars 95 forks source link

Transfer speed performance #99

Open marcovidonis opened 2 years ago

marcovidonis commented 2 years ago

I'm noticing what looks like a bottleneck in the transfer speed performance compared to what's attainable in instant.io.

When I transfer a file between 2 btorrent instances (2 browser windows running on the same machine) I get a maximum transfer rate of approx. 3 MB/s. If I do the same on 2 instant.io instances on the same machine, I get transfer rates of 15-20 MB/s.

Have you noticed the same @DiegoRBaquero? Any idea as to what could be the difference? Both projects run on webtorrent with the same trackers, so I can't really understand what might be cause of the issue.

DiegoRBaquero commented 2 years ago

I can't check atm but my guess is newer webtorrent version (?)

marcovidonis commented 2 years ago

I've done some more digging and it looks like it might actually be an issue with webtorrent versions newer than 1.3.4 when the app is not bundled with browserify. If I use v1.3.4 or older I get speeds that are at least as fast as instant.io. When I switch to v.1.3.5, all rest being the same, speed is capped at about 3 MB/s.

I opened an issue on the webtorrent project: https://github.com/webtorrent/webtorrent/issues/2351.