HttpServer and HttpClient are slow at processing HTTPS data #54752
Labels
area-core-library
SDK core library issues (core, async, ...); use area-vm or area-web for platform specific libraries.
library-io
HttpClient
andHttpServer
are slow at processing large binary data when HTTPS is enabled.I have created a repository to test this: https://github.com/Tienisto/httpserver-benchmark
In general, the HTTP performance is fine. But there is a strange behaviour when dealing with encryption (HTTPS).
Dart is much slower than Node.js which is actually noticable in one of my projects: localsend/localsend#384 where someone even created a Rust backend because of the poor Dart performance: https://github.com/tom8zds/localsend_rs
On Windows or macOS, this is not really noticable because they are often fast enough so that the bandwidth is the bottleneck (and not Dart).
On Android or older iPhones however, this is definitely noticable.
Here are the results (they ran on a M2 chip):
HTTP
HTTPS
The text was updated successfully, but these errors were encountered: