logoalt Hacker News

apitmanyesterday at 8:26 PM2 repliesview on HN

You can pipe through a TransformStream that counts how many bytes you've uploaded, right?


Replies

afavourtoday at 11:09 AM

That would show how quickly the data is passing into the native fetch call but doesn’t account for kind of internal buffer it might have, network latency etc

zachripyesterday at 9:39 PM

That is a way to approximate it, though I'd be curious to know the semantics compared to xhr - would they both show the same value at the same network lifecycle of a given byte?