ipfs / helia

An implementation of IPFS in JavaScript
https://helia.io
Other
811 stars 81 forks source link

chore: add transports benchmark #521

Closed achingbrain closed 2 months ago

achingbrain commented 2 months ago

Adds a benchmark that measures how long it takes to transfer 100M-1G of data between node, firefox and chrome using WebRTC, WebSockets and TCP.

Change checklist

achingbrain commented 2 months ago

This should fix the stuck test for TCP/WebSockets - https://github.com/ipfs/helia/pull/522

Still investigating WebRTC.

achingbrain commented 2 months ago

Generated graph:

image
achingbrain commented 2 months ago

I'm going to merge this, since the benchmark runs now. There are some browser bugs that prevent all implementations being tested with each other but that's beyond the scope of this PR to fix.