3 ms·
Author of typedload here! FastAPI relies on (not so fast) pydantic, which is one of the slowest libraries in that category. Don't expect to find such benchmar
by LtWorf 4y ago
Author of typedload here!
FastAPI relies on (not so fast) pydantic, which is one of the slowest libraries in that category.
Don't expect to find such benchmarks on the pydantic documentation itself, but the competing libraries will have them.
[0] https://ltworf.github.io/typedload/ https://ltworf.github.io/typedload/
- highpost 4y agopydantic 2.0 should arrive this Spring with lots of Rust enhancements. https://docs.pydantic.dev/blog/pydantic-v2/ https://docs.pydantic.dev/blog/pydantic-v2/
- LtWorf 4y agoBut it's designed by the same people whose .so binary module somehow manages to be slower than a .py script :) Anyway we will see when it comes. This week at work I was just appreciating that typedload just works with static type checkers without having to install plugins (and all the type errors of pydantic won't be reported unless you do install the plugin).