🌐 Add Chinese translation for Benchmarks#2119
Conversation
Codecov Report
@@ Coverage Diff @@
## master #2119 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 239 239
Lines 7079 7079
=========================================
Hits 7079 7079 Continue to review full report at Codecov.
|
|
📝 Docs preview for commit 47ce9a0 at: https://5f76e182bf48a0c51aec2d5f--fastapi.netlify.app |
|
|
||
| 独立公司 TechEmpower 的基准测试表明在 Uvicorn 下运行的 **FastAPI** 应用程序是 <a href="https://www.techempower.com/benchmarks/#section=test&runid=7464e520-0dc2-473d-bd34-dbdfd7e85911&hw=ph&test=query&l=zijzen-7" class="external-link" target="_blank">可用的最快的 Python 框架之一</a>,仅次与 Starlette 和 Uvicorn 本身 (由 FastAPI 内部使用)。(*) | ||
|
|
||
| 但是在检查基准测试或与其它同类比较时,请注意以下几点。 |
There was a problem hiding this comment.
"checking benchmarks and comparisons" should be "查看基准得分和对比"
|
|
||
| ## 基准测试和速度 | ||
|
|
||
| 当您做基准测试检查时,通常会看到被视为等效的几种不同类型的工具。 |
There was a problem hiding this comment.
当你查看基准测试时,几个不同类型的工具被等效地做比较是很常见的情况。
|
|
||
| * **Uvicorn**: | ||
| * 具有最佳性能,因为除了服务器本身外,它没有太多额外的代码。 | ||
| * 您不会直接在 Uvicorn 中编写应用程序。这意味着您的代码至少必须包含 Starlette(或 **FastAPI**)提供的代码。如果您这样做了,最终应用程序和框架会最大程度地减少应用程序代码的编码量和错误。 |
There was a problem hiding this comment.
”And if you did that, your final application would have the same overhead as having used a framework and minimizing your app code and bugs.“ means "如果你这样做了(即直接在 Uvicorn 中编写应用程序),你最终的应用程序会和使用了框架并且最小化了应用代码和 bug 的情况具有相同的性能损耗。
There was a problem hiding this comment.
Thank you for your review
|
📝 Docs preview for commit 0b50af6 at: https://5f8070632fff9e00e662ecca--fastapi.netlify.app |
|
Great! Thank you @spaceack 🙇 🚀 And thanks @waynerv and @Laineyzhang55 for the reviews 👏 👏 ☕ |
This PR translates the benchmarks.md to Chinese.
Please help review. @waynerv @Dustyposa @RunningIkkyu @Choyeon