mirror of
https://github.com/LCTT/TranslateProject.git
synced 2025-01-25 23:11:02 +08:00
翻译完成
This commit is contained in:
parent
7a6050767c
commit
1cd3e9a3e9
@ -305,7 +305,7 @@ Iris MVC 应用程序,使用 27 行代码,运行 47 秒,每秒接纳 10564
|
||||
|
||||
— @shanselman
|
||||
|
||||
@shanselman @clarkis117 @topdawgevh @ben_a_adams @davidfowl @shanselman @ben_a_adams @davidfowl Thank you for your feedback! I did update the results, no difference. I'm open for any other suggestion
|
||||
@shanselman @clarkis117 @topdawgevh @ben_a_adams @davidfowl @shanselman @ben_a_adams @davidfowl 谢谢您们的反馈意见。我已经修改,更新了结果,没什么不同。对其它的建议,我非常欢迎。
|
||||
|
||||
— @MakisMaropoulos
|
||||
|
||||
@ -313,15 +313,15 @@ Iris MVC 应用程序,使用 27 行代码,运行 47 秒,每秒接纳 10564
|
||||
|
||||
|
||||
|
||||
For those who want to compare with the standard `services.AddMvc(); `you can see the old output by pressing [here][27].
|
||||
想要了解跟 `services.AddMvc()` 标准比较结果的,可以点击[这儿][27]。
|
||||
|
||||
* * *
|
||||
|
||||
### Can you stay a bit longer for one more?
|
||||
### 想再多了解点儿吗?
|
||||
|
||||
Let’s run one more benchmark, spawn `1000000 requests` but this time we expect `HTML` generated by templates via the view engine.
|
||||
我们再制定一个基准,产生 `1000000 次请求`,这次会通过视图引擎由模板生成 `HTML` 页面。
|
||||
|
||||
#### .NET Core MVC with Templates
|
||||
#### .NET Core MVC 使用的模板
|
||||
|
||||
|
||||
```
|
||||
@ -473,10 +473,12 @@ Views/Home/Index.cshtml
|
||||
|
||||
These files are quite long to be shown in this article but you can view them at:
|
||||
https://github.com/kataras/iris/tree/master/_benchmarks/netcore-mvc-templates
|
||||
|
||||
```
|
||||
|
||||
|
||||
_Start the .NET Core web server_
|
||||
_运行 .NET Core 服务项目_
|
||||
|
||||
|
||||
```
|
||||
$ cd netcore-mvc-templates
|
||||
@ -487,7 +489,7 @@ Now listening on: http://localhost:5000
|
||||
Application started. Press Ctrl+C to shut down.
|
||||
```
|
||||
|
||||
_Target and run the HTTP benchmark tool_
|
||||
_运行和定位 HTTP 基准工具_
|
||||
|
||||
```
|
||||
Bombarding http://localhost:5000 with 1000000 requests using 125 connections
|
||||
@ -502,7 +504,7 @@ Statistics Avg Stdev Max
|
||||
Throughput: 89.03MB/s
|
||||
```
|
||||
|
||||
#### Iris MVC with Templates
|
||||
#### Iris MVC 使用的模板
|
||||
|
||||
```
|
||||
package controllers
|
||||
@ -615,11 +617,13 @@ views/index.html
|
||||
These files are quite long to be shown in this article but you can view them at:
|
||||
https://github.com/kataras/iris/tree/master/_benchmarks/iris-mvc-templates
|
||||
*/
|
||||
|
||||
```
|
||||
|
||||
|
||||
|
||||
_Start the Go web server_
|
||||
_运行 Go 服务项目_
|
||||
|
||||
|
||||
```
|
||||
$ cd iris-mvc-templates
|
||||
@ -629,7 +633,7 @@ Application started. Press CTRL+C to shut down.
|
||||
|
||||
```
|
||||
|
||||
_Target and run the HTTP benchmark tool_
|
||||
_运行和定位 HTTP 基准工具_
|
||||
|
||||
```
|
||||
Bombarding http://localhost:5000 with 1000000 requests using 125 connections
|
||||
@ -644,42 +648,43 @@ Statistics Avg Stdev Max
|
||||
Throughput: 192.51MB/s
|
||||
```
|
||||
|
||||
Summary
|
||||
总结
|
||||
|
||||
* Time to complete the `1000000 requests` — smaller is better.
|
||||
* 完成 `1000000 个请求`的时间 - 越短越好。
|
||||
|
||||
* Reqs/sec — bigger is better.
|
||||
* 请求次数/每秒 - 越大越好。
|
||||
|
||||
* Latency — smaller is better
|
||||
* 等待时间 — 越短越好。
|
||||
|
||||
* Memory usage — smaller is better.
|
||||
* 内存使用 — 越小越好。
|
||||
|
||||
* Throughput — bigger is better.
|
||||
* 吞吐量 — 越大越好。
|
||||
|
||||
.NET Core MVC with Templates Application ran for 1 minute and 20 seconds serving 11738.60 requests per second with 89.03MB/s within 10.10ms latency in average and 1.97s max, the memory usage of all these was ~193MB (without the dotnet host).
|
||||
|
||||
Iris MVC with Templates Application ran for 37 seconds serving 26656.76requests per second with 192.51MB/s within 1.18ms latency in average and 22.52ms max, the memory usage of all these was ~17MB.
|
||||
.NET Core MVC 模板应用程序,运行 1 分钟 20 秒,每秒接纳 11738.60 个请求,同时每秒生成 89.03M 页面,平均每秒有 10.10ms 等待,最大时到 1.97s,内存使用大约为 193MB(不包括 dotnet 框架)。
|
||||
|
||||
### What next?
|
||||
Iris MVC 模板应用程序,运行 37 秒,每秒接纳 26656.76 个请求,同时每秒生成 192.51M 页面,平均每秒有 1.18ms 等待,最大时到 22.52ms,内存使用大约为 17MB。
|
||||
|
||||
Download the example source code from [there ][32]and run the same benchmarks from your machine, then come back here and share your results with the rest of us!
|
||||
### 接下来呢?
|
||||
|
||||
For those who want to add other go or c# .net core web frameworks to the list please push a PR to the `_benchmarks` folder inside [this repository][33].
|
||||
[这里][32]有上面所示的源代码,请下载下来,在您本地以同样的基准运行,然后把运行结果在这儿给大家分享。
|
||||
|
||||
I need to personally thanks the [dev.to][34] team for sharing my article at their twitter account, as well.
|
||||
想添加 Go 或 C# .net core WEB 服务框架到列表的朋友请向[这个仓库][33]的 `_benchmarks ` 目录推送 PR。
|
||||
|
||||
Go vs .NET Core in terms of HTTP performance { author: @MakisMaropoulos } https://t.co/IXL5LSpnjX
|
||||
我也需要亲自感谢下 [dev.to][34] 团队,感谢把我的这篇文章分享到他们的 Twitter 账户。
|
||||
|
||||
论 HTTP 性能,Go 与 .NET Core 谁争雌雄 {作者:@MakisMaropoulos} https://t.co/IXL5LSpnjX
|
||||
|
||||
— @ThePracticalDev
|
||||
|
||||
|
||||
Thank you all for the 100% green feedback, have fun!
|
||||
感谢大家真心反馈,玩得开心!
|
||||
|
||||
#### Update: Monday, 21 August 2017
|
||||
#### 更新 : 2017 年 8 月 21 ,周一
|
||||
|
||||
A lot of people reached me saying that want to see a new benchmarking article based on the .NET Core’s lower level Kestrel this time.
|
||||
很多人联系我,希望看到一个基于 .NET Core 的较低级别 Kestrel 的基准测试文章。
|
||||
|
||||
So I did, follow the below link to learn the performance difference between Kestrel and Iris, it contains a sessions storage management benchmark too!
|
||||
因此我完成了,请点击下面的链接来了解 Kestrel 和 Iris 之间的性能差异,它还包含一个会话存储管理基准!
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
|
Loading…
Reference in New Issue
Block a user