# HTTP.jl async is slow compared to python+aiohttp

**URL:** <https://discourse.julialang.org/t/http-jl-async-is-slow-compared-to-python-aiohttp/96736>\
**Category:** Performance\
**Tags:** data\
**Created:** [March 29, 2023, 1:36am UTC](https://discourse.julialang.org/t/http-jl-async-is-slow-compared-to-python-aiohttp/96736 "2023-03-29T01:36:00Z")\
**Posts on this page:** 1\
**Showing post:** 43

<div class="post-metadata">

**Author:** ![anon56330260](https://avatars.discourse-cdn.com/v4/letter/a/f07891/32.png) [@anon56330260](https://discourse.julialang.org/u/anon56330260)\
**Post date:** [April 2, 2023, 12:41am UTC](https://discourse.julialang.org/t/http-jl-async-is-slow-compared-to-python-aiohttp/96736/43 "2023-04-02T00:41:28Z")

</div>

It seems that the slowdown is caused by HTTP.jl 's unoptimized SSL implementation. Another person in this thread also quotes a similar post. The current solution is to replace MbedTLS with OpenSSL.jl.

> [@Slow HTTP.jl requests when SSL is enabled](https://discourse.julialang.org/t/slow-http-jl-requests-when-ssl-is-enabled/36183/10):
>
> FWIW, the maintainer of HTTP.jl is aware of MbedTLS limitations:

Maybe you can do some benchmark with [https://github.com/JuliaWeb/OpenSSL.jl](https://github.com/JuliaWeb/OpenSSL.jl) ? The API to me looks much like the standard socket interface.

---

_[View the full topic](https://discourse.julialang.org/t/http-jl-async-is-slow-compared-to-python-aiohttp/96736)._
