- /*
- wwwroot/css
- wwwroot/images
- wwwroot/js
- wwwroot/lib
- wwwroot/favicon.ico
- Views/Shared/_Layout.cshtml
- Views/Shared/Error.cshtml
- Views/Home/About.cshtml
- Views/Home/Contact.cshtml
- 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
因为是新出的,我不想立马就比较两个不合的器械,所以我耐烦等待,想等宣布更稳定的版本后再进行。
运行 .NET Core 办事项目:
- $ cd netcore-mvc-templates
- $ dotnet run -c Release
- Hosting environment: Production
- Content root path: C:\mygopath\src\github.com\kataras\iris\_benchmarks\netcore-mvc-templates
- Now listening on: http://localhost:5000
- Application started. Press Ctrl+C to shut down.
运行 HTTP 基准对象:
- Bombarding http://localhost:5000 with 1000000 requests using 125 connections
- 1000000 / 1000000 [====================================================] 100.00% 1m20s
- Done!
- Statistics Avg Stdev Max
- Reqs/sec 11738.60 7741.36 125887
- Latency 10.10ms 22.10ms 1.97s
- HTTP codes:
- 1xx — 0, 2xx — 1000000, 3xx — 0, 4xx — 0, 5xx — 0
- others — 0
- Throughput: 89.03MB/s
Iris MVC 应用的模板
- package controllers
- import "github.com/kataras/iris/mvc"
- type AboutController struct{ mvc.Controller }
- func (c *AboutController) Get() {
- c.Data["Title"] = "About"
- c.Data["Message"] = "Your application description page."
- c.Tmpl = "about.html"
- }
- package controllers
- import "github.com/kataras/iris/mvc"
推荐阅读
SQL Server 2017正式发布;Oracle宣布开源Fn project
SQL Server 2017 正式宣布:同时支撑 Windows 和 Linux微软在客岁 3 月初次对外宣布了 Linux 版的 SQL Server,痊愈本年 7 月宣布了首个公开 RC 版。前几日在美国奥兰多召开的微软 Ignit>>>详细阅读
地址:http://www.17bianji.com/lsqh/37756.html
1/2 1

网友点评
精彩导读
科技快报
品牌展示