-
-
Notifications
You must be signed in to change notification settings - Fork 6.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
🌐 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 |
docs/zh/docs/benchmarks.md
Outdated
|
||
独立公司 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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"checking benchmarks and comparisons" should be "查看基准得分和对比"
docs/zh/docs/benchmarks.md
Outdated
|
||
## 基准测试和速度 | ||
|
||
当您做基准测试检查时,通常会看到被视为等效的几种不同类型的工具。 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
当你查看基准测试时,几个不同类型的工具被等效地做比较是很常见的情况。
docs/zh/docs/benchmarks.md
Outdated
|
||
* **Uvicorn**: | ||
* 具有最佳性能,因为除了服务器本身外,它没有太多额外的代码。 | ||
* 您不会直接在 Uvicorn 中编写应用程序。这意味着您的代码至少必须包含 Starlette(或 **FastAPI**)提供的代码。如果您这样做了,最终应用程序和框架会最大程度地减少应用程序代码的编码量和错误。 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
”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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for your review
📝 Docs preview for commit 0b50af6 at: https://5f8070632fff9e00e662ecca--fastapi.netlify.app |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
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