使用corert编译.net项目

vs2019选择c++桌面开发,c盘 - 5g

编译hello world项目
https://github.com/dotnet/runtimelab/tree/feature/NativeAOT/samples/HelloWorld

最终生成了一个4M的exe文件

好,很有精神,接下来有空试试把我的项目转成cpp的看能提升多少效率


测试速度:
.net 4.7.2 --> 9221 ms
.net 5 --> 7820 ms
.corert --> 8406 ms
抛开误差,所剩无几

原文地址:https://www.cnblogs.com/trykle/p/14359557.html