Closed imbolc closed 3 years ago
Try using { version = "2.2", default-features = false, features = ["h1-client"] }
in your Cargo.toml
and then let us know if this is still an issue.
By default Surf 2 uses libcurl via isahc for it's HTTP client implementation.
I just did a simple echo benchmark and found 9 times drop in performance, while I'd expect it to be about 2. All the CPU cores was busy.
Here's the code I used:
And the results I got: