lexnv/litep2p-perf#2 adds support for measuring bandwidth on WebRTC connections using rust-libp2p and litep2p. Both receiving data and sending data on a WebRTC substream is very slow in litep2p (see the table in the README).
When receiving data, bandwidth seems to drop by 10x when going from 128KiB to 256 KiB and continues to degrade from there.
When sending data, bandwidth is much lower compared to all other tested pairings, but seems to actually increase up to 512KiB. Sending 1.0MiB however seems to never finish.