rust-ipfs icon indicating copy to clipboard operation
rust-ipfs copied to clipboard

bitswap: Investigate performance speed

Open dariusc93 opened this issue 1 year ago • 1 comments

Bitswap (or beetle-bitswap) speed is rather low compared to kubo (and possibly js-ipfs/helia) when exchanging blocks between two rust-ipfs nodes, however the speed is much faster when exchanging blocks with a kubo node. Originally, it could have been due to how we process blocks in IpfsTask, however since a kubo node bitswap performance is much faster between rust-ipfs<->kubo, this may be more related to how blocks are sent out in the current implementation or requested from kubo.

Information (base on 256mb file in local network): rust-ipfs<->rust-ipfs: ~103s kubo<->rust-ipfs: ~9s rust-ipfs<->kubo: ~38s

dariusc93 avatar Dec 18 '23 02:12 dariusc93