• 如何理解MIPS = 指令条数/(执行时间x10^6)=主频/(CPIx10^6)


    公式一:MIPS= 指令条数/(执行时间x10^6)

    M I P S = M i l l i o n   I n s t r u c t i o n s   P e r   S e c o n d = 每秒执行多少百万条指令 = 每秒执行多少条指令 100 万 = 每秒执行多少条指令 1 0 6

    MIPS=Million Instructions Per Second==100=106" role="presentation" style="position: relative;">MIPS=Million Instructions Per Second==100=106
    MIPS====Million Instructions Per Second每秒执行多少百万条指令100每秒执行多少条指令106每秒执行多少条指令
    在某一个情境中,假设有500条指令,执行完这500条指令需要5s,则在这个情境下,
    每秒执行多少条指令 = 500 条指令 5 s = 100 条 / s = 每秒执行 100 条指令
    =5005s=100/s=100" role="presentation" style="position: relative;">=5005s=100/s=100
    每秒执行多少条指令==5s500条指令=100/s每秒执行100条指令

    抽象一下,
    500条指令→指令条数
    500条指令一共用5s执行完→指令执行时间
    所以
    每秒执行多少条指令 = 500 条指令 5 s = 100 条 / s = 指令条数 执行时间
    =5005s=100/s=" role="presentation" style="position: relative;">=5005s=100/s=
    每秒执行多少条指令=5s500条指令=100/s=执行时间指令条数

    所以(8)带入(4)得

    M I P S = 每秒执行多少条指令 1 0 6 = 指令条数 执行时间 1 0 6 = 指令条数 执行时间 ∗ 1 0 6

    MIPS=106=106=106" role="presentation" style="position: relative;">MIPS=106=106=106
    MIPS===106每秒执行多少条指令106执行时间指令条数执行时间106指令条数

    公式二:MIPS = 主频/(CPIx10^6)

    主频 = 每秒钟能经历的时钟周期的个数 C P I = 执行一条指令需要的时钟周期个数 每秒执行多少条指令 = 每秒钟能经历的时钟周期的个数 执行一条指令需要的时钟周期个数 = 主频 C P I

    =CPI===CPI" role="presentation" style="position: relative;">=CPI===CPI
    主频CPI每秒执行多少条指令=每秒钟能经历的时钟周期的个数=执行一条指令需要的时钟周期个数=执行一条指令需要的时钟周期个数每秒钟能经历的时钟周期的个数=CPI主频

    M I P S = 每秒执行多少条指令 1 0 6 = 主频 C P I 1 0 6 = 主频 C P I × 1 0 6

    MIPS=106=CPI106=CPI×106" role="presentation" style="position: relative;">MIPS=106=CPI106=CPI×106
    MIPS===106每秒执行多少条指令106CPI主频CPI×106主频

  • 相关阅读:
    Springboot项目中加载Groovy脚本并调用其内部方代码实现
    简易学生管理系统项目:(增、删、查、改、模糊查、分页查、上传、下载、视频导入、当前系统时间) --- 《附源码》
    数据结构预算法--链表(单链表,双向链表)
    这篇spring事务理解透了,工资直接涨10K
    故障:不能打开 Office 应用程序,并指示有账户正在登录
    HTML开篇之安装VSvode(用记事本编辑HTML)
    (四)Vue之数据绑定
    腾讯春招后端一面(算法篇)
    刚工作菜鸟的小总结1
    弘辽科技:淘宝中秋过后还有什么活动?活动怎么策划好?
  • 原文地址:https://blog.csdn.net/u012076669/article/details/133419708