4
votes

I am using PeerJS, which is a JavaScript implementation of WebRTC. I am using it for sending data through the DataChannel.

Are there any speed restrictions by the browser engines?

I am not able to send more than ~20MB/s even though both instances of my application are running on the same machine. The data is not being sent over the network as can be seen using the system monitor of my Linux machine. I have tried both Chrome and Firefox.

Has anyone experienced faster speeds using the WebRTC data channel? I presumed that a peer-to-peer connection should be the fastest means of data transportation and am wondering if that's my implementation or a protocol issue. I am aware that window size plays a major role in performance especially. Any practical experiences with PeerJS that could be helpful?

2

2 Answers

0
votes

The answer to WebRTC Datachannel for high bandwidth application gives advices on how to reach higher throughput in WebRTC data channels.

0
votes

if you want Download Speed, Create N*PeerConnection send the file might be helpful.

what you are try to do is the same as Single Thread Download File (TCP/IP), Nothing Different Except the Transport Protocol.

You can try the Speed Test Under Single Thread.