js-libp2p icon indicating copy to clipboard operation
js-libp2p copied to clipboard

WebRTC streaming performance

Open achingbrain opened this issue 9 months ago • 2 comments

The performance dashboard shows that the median streaming performance of WebRTC in Node.js is an order of magnitude slower than TCP.

We should look into why this is.

Support for WebRTC is provided by node-datachannel (we are using a temporary fork at https://github.com/ipshipyard/js-node-datachannel until https://github.com/murat-dogan/node-datachannel/pull/256 is merged).

node-datachannel uses libdatachannel which then uses libjuice so the bottleneck is in there somewhere.

achingbrain avatar Mar 05 '25 17:03 achingbrain

Hey @achingbrain I am new to libp2p but want to learn and contribute to this issue can you please assign me this issue

07Vaishnavi-Singh avatar Mar 12 '25 10:03 07Vaishnavi-Singh

Thanks for your interest. Please experiment locally and open a PR with your solution. I do not wish to put other people off tackling this issue so I will not assign anyone.

achingbrain avatar Mar 14 '25 10:03 achingbrain

@achingbrain i would like to start working on this issue. If this issue is still valid, I can have a pr ready to review in the coming days

Patrick-Ehimen avatar Aug 06 '25 22:08 Patrick-Ehimen