|
|
|
|
|
by LtWorf
843 days ago
|
|
Well FastAPI was originally based on pydantic 1.x, which was extremely slow (so slow in fact that they removed the benchmarks from the website). I am the author of typedload, a similar library written in pure python. Mostly for fun I started to see how much I could improve performances, benchmarking against other libraries. I was very surprised to find out that pydantic2, despite the rewrite in rust, wasn't overwhelmingly faster… in fact it is still slower than my pure python library in some cases. But, I guess having "fast" in the name sounds good! https://ltworf.github.io/typedload/performance.html (I re-run them every time I release). |
|