From 40ba73bc9c58f4b1752707dee9281385c67297a1 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Wed, 24 Apr 2024 15:14:30 +0000 Subject: [PATCH] =?UTF-8?q?=F0=9F=8E=A8=20[pre-commit.ci]=20Auto=20format?= =?UTF-8?q?=20from=20pre-commit.com=20hooks?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/zh-hant/benchmarks.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/zh-hant/benchmarks.md b/docs/zh-hant/benchmarks.md index 6eb1368adb..dad7368a54 100644 --- a/docs/zh-hant/benchmarks.md +++ b/docs/zh-hant/benchmarks.md @@ -31,4 +31,4 @@ * FastAPI 在 Starlette 基礎之上提供了更多功能。包含建構 API 時所需要的功能,例如資料驗證和序列化。FastAPI 可以幫助您自動產生 API文檔,(應用程式啟動時將會自動生成文件,所以不會增加應用程式運行時的開銷)。 * 如果您沒有使用 FastAPI 而是直接使用 Starlette(或其他工具,如 Sanic、Flask、Responder 等),您將必須自行實現所有資料驗證和序列化。因此,您的最終應用程式仍然具有與使用 FastAPI 建置相同的開銷。在許多情況下,這種資料驗證和序列化是應用程式中編寫最大量的程式碼。 * 因此透過使用 FastAPI,您可以節省開發時間、錯誤與程式碼數量,並且相比不使用 FastAPI 您很大可能會獲得相同或更好的性能(因為那樣您必須在程式碼中實現所有相同的功能)。 - * 如果您要與FastAPI比較,請將其與能夠提供資料驗證、序列化和文件的Web 應用程式框架(或工具集)進行比較,例如Flask-apispec、NestJS、Molten 等框架。 \ No newline at end of file + * 如果您要與FastAPI比較,請將其與能夠提供資料驗證、序列化和文件的Web 應用程式框架(或工具集)進行比較,例如Flask-apispec、NestJS、Molten 等框架。