Hacker News new | ask | show | jobs
by apitman 84 days ago
You can pipe through a TransformStream that counts how many bytes you've uploaded, right?
2 comments

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
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?