DotNetCore跨平台~性能测试~可以放心使用了
2016-06-01 11:10
477 查看
使用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上部署很容易
安装命令如下:
没有了dnvm的身影,直接用apt-get安装,与linux有了更好的融合。
创建并运行一个hello world程序试试:
这样就可以看到hello world了,挺好!
先看看它支持的数据库
以下主流数据库都是为支持的
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了,挺好!
相关文章推荐
- 使用对象流读写对象代码笔记(ObjectInputStream ,ObjectOutputStream)
- 浅谈c/c++中使用指针需要注意的问题
- C# 设计模式系列教程-桥接模式
- 汇编指令
- iOS之简单瀑布流的实现
- tomcat server.xml 配置示例
- Linux下面安装RabbitMQ Cluster
- C语言指针转换为intptr_t类型
- javascript取整 取余等操作
- java版-金额转大写(可处理千万亿,精确到分)
- Linearlayout 测量过程源码解析(二)
- 关于C指针的应用问题记录
- 【BZOJ4103】【Thusc2015】异或运算 可持久Trie
- 基于Cordys BOP 4 维护开发代码实践经验
- ASP.NET MVC4 传递Model到View
- 浅笑
- Python translate()方法
- 华为机试---放苹果
- String类(1)
- 程序员常用的几款辅助编程工具