- 1、本文档共30页,可阅读全部内容。
- 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
- 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
Performance Measurement 1 Performance Execution time 执行时间(latency等待时间): Time between the start and the completion of an event一个事件从开始到结束所经过的时间 Performance ? 1/(Execution time)性能与执行时间成反比 Throughput吞吐量 (bandwidth带宽): Total amount of work done in a given time给定时间内完成的全部工作 Performance Measurement 1 Machine X is n% faster than Machine Y:机器X比机器Y快 n% Performance Measurement 2 Example: Machine A runs a program in 10 seconds, Machine B runs the same program in 15 seconds, A is __% faster than B. Make the Common Case Fast Perhaps the most important and pervasive principle of computer design is to make the common case fast: In making a design trade-off, favor the frequent case over the infrequent case. 计算机设计的最重要的原则就是:加快经常性发生事件的执行速度。 Make the Common Case Fast Improving the frequent event, rather than the rare event, will obviously help performance. Overflow case and no overflow case in addition 提高频繁事件的执行速度,而不是提高罕见事件的执行速度,将带来明显的性能上的提高 例如加法运算中的溢出和非溢出情况 Amdahl’s Law 1 Amdahl’s Law states that the performance improvement to be gained from using some faster mode of execution is limited by the fraction of the time the faster mode can be used. 阿姆达定律表明:通过改进某模式得到的整体性能提高,受限于该改进模式所占的运行时间比例。 Amdahl’s Law 2 Speedup (加速比) = Performance for entire task using the enhancement when possible(改进后完成整个任务的性能) Performance for entire task w/o using the enhancement (改进前完成整个任务的性能) = Execution time for entire task w/o using the enhancement(改进前完成整个任务的时间) Execution time for entire task using the enhancement when possible (改进前完成整个任务的时间) Amdahl’s Law 3 Execution timenew = Execution timeold x where fE: fraction of enhancement sE: improvement gained by the enhancement mode 即:新的执行时间= 原来执行时间x Amdahl’s Law 3 ? Speedup = 即:加速比=原来的执行时间/新的执行时间 1 = Amdahl’s Law 4 Example: An enhancement run 10 times faster than the original machine, but it is usable 40% of the time, th
您可能关注的文档
- 塔式起重机应急预案(副本).doc
- 大学英语第四册课文翻译_附件.doc
- 钢结构架空管道支架设计.pdf
- 数据库实验——存储过程概论.doc
- 第五篇 银行代理理财产品-银行代理保险产品.pdf
- 上半学期英语详解.doc
- 微机操作系统剖析.pdf
- 信息管理概论自测题资料.doc
- 第五章 TU分类号查询.docx
- 网上商城需求规格说明书剖析.doc
- DB44_T 2607.4-2025 滨海蓝碳碳汇能力调查与核算技术指南 第4部分:盐沼.pdf
- DB43_T 3178-2024 烟叶农场建设管理要求.pdf
- DB37_T 4838-2025 含氢分布式综合能源系统运行优化指南.pdf
- DB37_T 4834-2025 高速公路集中养护工作指南.pdf
- DB44_T 2611-2025 城市排水管网有毒有害气体监测与风险分级管理技术标准.pdf
- DB44_T 2612-2025 竞赛类科普活动策划与实施服务规范.pdf
- DB43_T 2947-2024 烟草种子质量控制规程.pdf
- DB37_T 4836-2025 煤矿风量实时监测技术要求.pdf
- 叉车防撞系统,全球前22强生产商排名及市场份额(by QYResearch).docx
- 超滤膜,全球前18强生产商排名及市场份额(by QYResearch).docx
文档评论(0)