DotNetCore跨平台~性能测试~可以放心使用了
使用dotnetCore发布站点后,它的处理请求能力不逊色IIS等大型服务的能力,号称每秒能处理115万个请求,太牛X了也。
先看看它支持的数据库
以下主流数据库都是为支持的
- Microsoft SQL Server
- SQLite
- Npgsql (PostgreSQL)
- MySQL
- Microsoft SQL Server Compact Edition
- IBM Data Servers
- InMemory (for testing)
再看看老外测试出来的结果
ASP.NET Core – 2300% More Requests Served Per Second
ASP.NET Core – Exceeds 1.15 Million request/s, 12.6 Gbps
Congratulations to ASP.NET Core and .NET Core teams and the Open Source .NET community for quite a milestone in performance!
2300% More Requests Served Per Second
1.15 Million represents a 2300% gain from ASP.NET 4.6!
Why 2 decimal places? I’m not sure why Scott Hunter chose that level of precision, but to me it’s quite significant…
The third decimal place 0.05 Million (e.g. 50,000) is around the total number of requests per second that ASP.NET 4.6 could perform of the same type, on the same hardware – as shown in the below graph:
这种吞吐量应该可以被授受和认可了!
在Linux上部署很容易
安装命令如下:
sudo sh -c 'echo "deb [arch=amd64] http://apt-mo.trafficmanager.net/repos/dotnet/ trusty main" > /etc/apt/sources.list.d/dotnetdev.list'
sudo apt-key adv --keyserver apt-mo.trafficmanager.net --recv-keys 417A0893
sudo apt-get update
sudo apt-get install dotnet
没有了dnvm的身影,直接用apt-get安装,与linux有了更好的融合。
创建并运行一个hello world程序试试:
mkdir hello
cd $_
dotnet new
dotnet restore
dotnet run
这样就可以看到hello world了,挺好!
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· 记一次.NET内存居高不下排查解决与启示
· 探究高空视频全景AR技术的实现原理
· 理解Rust引用及其生命周期标识(上)
· 浏览器原生「磁吸」效果!Anchor Positioning 锚点定位神器解析
· 没有源码,如何修改代码逻辑?
· 分享4款.NET开源、免费、实用的商城系统
· 全程不用写代码,我用AI程序员写了一个飞机大战
· MongoDB 8.0这个新功能碉堡了,比商业数据库还牛
· 白话解读 Dapr 1.15:你的「微服务管家」又秀新绝活了
· 记一次.NET内存居高不下排查解决与启示
2015-06-01 MongoDB学习笔记~自己封装的Curd操作(查询集合对象属性,更新集合对象)
2012-06-01 事件之道~一 如何让实体发生更新时,同时记录它更新的内容到日志表
2011-06-01 项目中的通用查询参数类,它体现了项目架构的大局观
2011-06-01 MVC模式中,如何使用AJAX进行分页