ASP.NET Core (.NET Core) 和 ASP.NET Core (.NET Framework) 的区别 [英] Difference between ASP.NET Core (.NET Core) and ASP.NET Core (.NET Framework)

查看:63
本文介绍了ASP.NET Core (.NET Core) 和 ASP.NET Core (.NET Framework) 的区别的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

ASP.NET Core Web (.NET Core) 与 ASP.NET Core Web (.NET Framework) 有什么区别?

What is the difference between ASP.NET Core Web (.NET Core) vs ASP.NET Core Web (.NET Framework)?

并且.NET Framework 是否提供类似的性能 .NET Core?

and does .NET Framework provide similar performance as to .NET Core?

推荐答案

这起初可能令人困惑,但重要的是要记住:在一天结束时,ASP.NET Core"只是一堆可以安装在你的项目中的 NuGet 包.

This can be confusing at first, but it's important to remember: at the end of the day, "ASP.NET Core" is just a bunch of NuGet packages that can be installed in your project.

.NET Core 上的 ASP.NET Core 是跨平台的 ASP.NET Core.它可以在 Windows、Mac 和 Linux(包括 Docker)上运行.服务器不需要安装 .NET Core - 依赖项可以与应用程序捆绑在一起.

ASP.NET Core on .NET Core is cross-platform ASP.NET Core. It can run on Windows, Mac, and Linux (including Docker). The server doesn't need .NET Core installed - the dependencies can be bundled with the application.

.NET Framework 上的 ASP.NET Core 是完整"版本上的 ASP.NET Core.或桌面".NET 框架(例如 .NET 框架 4.6.2).这些应用程序只能在 Windows 上运行,但有关 ASP.NET Core 的其他一切都以相同的方式运行.

ASP.NET Core on .NET Framework is ASP.NET Core on the "full" or "desktop" .NET Framework (e.g. .NET Framework 4.6.2). These applications can only run on Windows, but everything else about ASP.NET Core behaves the same way.

根据您链接的基准测试,尽管 .NET Core 目前是最高的,但两者的性能都将高于 ASP.NET 4.6:

According to the benchmarks you linked, both will have higher performance than ASP.NET 4.6, although .NET Core is currently the highest:

ASP.NET 4.6:<50k 请求/秒

ASP.NET 4.6: <50k req/sec

ASP.NET Core (CLR):400k 请求/秒

ASP.NET Core (CLR): 400k req/sec

ASP.NET Core(.NET Core、Linux):900k 请求/秒

ASP.NET Core (.NET Core, Linux): 900k req/sec

ASP.NET Core(.NET Core,Windows):>1.1m 请求/秒

ASP.NET Core (.NET Core, Windows): >1.1m req/sec

但是,这些基准测试稍早(2016 年 2 月)并且反映了 RTM 之前的代码.如果他们从那时起有所改善,我不会感到惊讶.

However, these benchmarks are slightly older (February 2016) and reflect pre-RTM code. I wouldn't be surprised if they've improved since then.

这篇关于ASP.NET Core (.NET Core) 和 ASP.NET Core (.NET Framework) 的区别的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆