You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Run code: flutter run --release on Web then click a button, it will download ~18MB file.
Repeat tests on non-web (e.g. desktop platform), download speed shall be much higher.
On my ~40Mbps download connection, Linux maxes out download speed.
On Web speed seem to be throttled for some reason.
Linux
Download file http://localhost:8080/20MB.zip
flutter: Downloaded 20971520 in 3975ms
Web
Download file http://localhost:8080/20MB.zip
Downloaded 20971520 in 12xxxms
Dependencies
flutter pub add http
Proxy tunnel required on Web to avoid CORS issue. In order to make this test uniform proxy is used also on non-Web.
Unfortunately my environment has changed in the meantime and I no longer can reproduce this problem.
I am currently using Flutter 3.22.0 and Ubuntu 24.04 LTS, previously Flutter 3.19.5 and Ubuntu 23.10
I knot that previously I've tried this on multiple different browsers (Chrome and Firefox) and result were the same (poor download speed on Web).
Currently the speed using the example I've provided above, is somewhat comparable between Web and desktop, although certainly my poor 40Mb/s broadband is a limiting factor.
I've also updated file endpoints, as previous links expired. Since the new links don't handle CORS on Web, I've added a simple mitmproxy command to add them. This also means that transport no longer happen on HTTPS, but when tried some example HTTPS endpoint results were the same.
Steps to reproduce
Run code:
flutter run --release
on Web then click a button, it will download ~18MB file.Repeat tests on non-web (e.g. desktop platform), download speed shall be much higher.
On my ~40Mbps download connection, Linux maxes out download speed.
On Web speed seem to be throttled for some reason.
Linux
Web
Dependencies
Proxy tunnel required on Web to avoid CORS issue. In order to make this test uniform proxy is used also on non-Web.
cors.py
Code sample
Code sample
What target platforms are you seeing this bug on?
Web
OS/Browser name and version | Device information
Version 123.0.6312.58 (Official Build) (64-bit)
Ubuntu 23.10
Does the problem occur on emulator/simulator as well as on physical devices?
Yes
Logs
Logs
[Paste your logs here]
Flutter Doctor output
Doctor output
Originally posted here: flutter/flutter#146494
The text was updated successfully, but these errors were encountered: