编译后的可执行文件的性能差异 [英] Performance Difference on Compiled Executable

查看:110
本文介绍了编译后的可执行文件的性能差异的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个使用SQLDataReader对SQL Server数据库进行大量查询的应用程序.在两个平台上的Windows 10 64位上构建和执行时,性能存在很大差异.

I have an application that have intense query to SQL Server database utilising SQLDataReader. The problem when built and executed on Windows 10 64 bit on two platforms, the performance differ greatly.

在构建带有Radeton(tm)HD Graphics(4 CPUS)的AMD A10-5745M APU时,该应用程序在每个Windows主机上运行缓慢.但是,当使用Intel®Core™i5-4200M CPU @ 2.50GHz(4个逻辑CPU)进行编译时,它在每个Windows主机上的运行速度都非常快.

When built AMD A10-5745M APU with Radeton(tm) HD Graphics (4 CPUS), the application run slowly on every Windows hosts. But when compiled with Intel(R) Core(TM) i5-4200M CPU @2.50GHz (4 Logical CPUS), it runs very fast on every Windows host.

二者均使用Visual Studio Community 15 Update 2在.NET Framework 4.5.2中进行编译.

Both are compiled with .NET framework 4.5.2 using Visual Studio Community 15 Update 2. 

任何人都可以解释一下,尽管我在哪种环境下工作,但我怎么会有类似的行为?谢谢!

Can anyone please explain how can I have similar behavior despite on which environment I'm working on? Thanks!


推荐答案

您好

Hi Feris (LightoraCloud),

实际上,此问题与您的硬件有关.

Actually, this issue more related to your Hardware.

从我这一方面来说,我可能会有所偏见,但是我一直对英特尔CPU的寿命感到幸运. AMD以前曾是一个严重的竞争对手,但多年来质量一直在下降,而且他们似乎并没有跟上速度/功能部门的步伐. 您还可以检查 AMD A10-5745M与Intel Core i5-4200U 以获取更多详细信息.

From my side, I might be biased, but I have always had better luck with the lifespan of Intel CPUs.  AMD was a serious competitor before, but their quality has dropped over the years and they don't seem to be keeping up in the speed/features departments. You can also check AMD A10-5745M vs Intel Core i5-4200U for more details.

注意:此响应包含对第三方万维网站点的引用. Microsoft将这些信息作为 Microsoft确实做到了不控制这些站点,并且未测试在这些站点上找到的任何软件或信息;因此,Microsoft无法 对在此找到的任何软件或信息的质量,安全性或适用性做出任何陈述.

Note: This response contains a reference to a third party World Wide Web site. Microsoft is providing this information as a convenience to you. Microsoft does not control these sites and has not tested any software or information found on these sites; Therefore, Microsoft cannot make any representations regarding the quality, safety, or suitability of any software or information found there.

使用Internet上发现的任何软件都存在固有的危险,Microsoft提醒您确保自己 在从Internet上检索任何软件之前,应完全了解风险.

There are inherent dangers in the use of any software found on the Internet, and Microsoft cautions you to make sure that you completely understand the risk before retrieving any software from the Internet.

最诚挚的问候,

克里斯汀


这篇关于编译后的可执行文件的性能差异的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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