Performance 计算应用程序的加速时间(书本练习)

Performance 计算应用程序的加速时间(书本练习),performance,cpu-architecture,Performance,Cpu Architecture,我一直在阅读Patterson和Hennessy的《计算机组织与设计》,偶然发现了一个包含三个给定解决方案的练习。我找不到哪个是正确的。我试着用书中给出的性能方程进行计算: CPU执行时间=(指令计数*CPI)/时钟速率 但它不起作用。问题是: A given application written in Java runs 15 seconds on a desktop processor. A new Java compiler is released that requires only

我一直在阅读Patterson和Hennessy的《计算机组织与设计》,偶然发现了一个包含三个给定解决方案的练习。我找不到哪个是正确的。我试着用书中给出的性能方程进行计算:

CPU执行时间=(指令计数*CPI)/时钟速率

但它不起作用。问题是:

A given application written in Java runs 15 seconds on a desktop processor.
A new Java compiler is released that requires only 0.6 as many instructions as the old compiler. 
Unfortunately, it increases the CPI by 1.1.
How fast can we expect the application to run using this new compiler? 
Pick the right answer from the three choices below:

a. (15 * 0.6) / 1.1 = 8.2 sec
b. 15 * 0.6 * 1.1 = 9.9 sec
c. (15 * 1.1) / 0.6 = 27.5 sec
关于正确答案的一些见解以及使用该特定公式获得正确答案的原因将有所帮助。谢谢

new instruction count = old instruction count * 0.6
new CPI = old CPI * 1.1

现在替换,您将得到解决方案b。

A:15秒=InsA*CPIA*时钟频率 时钟频率=15秒/(InsA*CPIA)

时间B=(0.6*InsA)*(1.1*CPIA)*时钟频率 时间b=(0.6*InsA)*(1.1*CPIA)*15秒/(InsA*CPIA)

TimeB=0.6*1.1*15秒=9.9秒