Ofek Lev c18853d56f Fix setup for the Python framework fastapi (#7178) 3 年之前
..
templates 2b68a9c332 Add benchmark tests for FastAPI (#4282) 6 年之前
README.md 4322cacaef Update documentation links (#4541) 6 年之前
app.py c18853d56f Fix setup for the Python framework fastapi (#7178) 3 年之前
app_orjson.py 4e33b178fe Update fastapi orjson (replace #5594) (#5628) 5 年之前
benchmark_config.json 4e33b178fe Update fastapi orjson (replace #5594) (#5628) 5 年之前
config.toml 0096f84ee9 Config for the new toolset (#6259) 4 年之前
fastapi-orjson.dockerfile 0096f84ee9 Config for the new toolset (#6259) 4 年之前
fastapi.dockerfile 0096f84ee9 Config for the new toolset (#6259) 4 年之前
fastapi_conf.py b3ab2f7f52 Fix FastAPI implementation (#4457) 6 年之前
requirements-orjson.txt c18853d56f Fix setup for the Python framework fastapi (#7178) 3 年之前
requirements.txt c18853d56f Fix setup for the Python framework fastapi (#7178) 3 年之前

README.md

FastAPI Benchmarking Test

This is the FastAPI portion of a benchmarking tests suite comparing a variety of web development platforms.

The information below is specific to FastAPI. For further guidance, review the documentation. Also note that there is additional information provided in the Python README.

Description

FastAPI is a modern, fast (high-performance), web framework for building APIs with Python 3.6+.

The key features are:

  • Fast: Very high performance, on par with NodeJS and Go (thanks to Starlette and Pydantic).

  • Fast to code: Increase the speed to develop features by about 200% to 300% *.

  • Less bugs: Reduce about 40% of human (developer) induced errors. *

  • Intuitive: Great editor support. Completion everywhere. Less time debugging.

  • Easy: Designed to be easy to use and learn. Less time reading docs.

  • Short: Minimize code duplication. Multiple features from each parameter declaration. Less bugs.

  • Robust: Get production-ready code. With automatic interactive documentation.

  • Standards-based: Based on (and fully compatible with) the open standards for APIs: OpenAPI and JSON Schema.

* estimation based on tests on an internal development team, building production applications.

Test Paths & Sources

All of the test implementations are located within a single file (app.py).

All the tests are based on the ones for Starlette, as FastAPI is basically Starlette on steroids plus Pydantic, with many features specifically desgined for API development. All this while still supporting all the other features provided by Starlette.

Resources