• 如何理解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主频

  • 相关阅读:
    Python基础(四):Python必需掌握基础注释、变量、输出
    javascript动态创建script元素后,动态加载外部js文件
    高级二-十进制转换算法
    架构设计(高可用)
    Linux:基础开发工具之yum,vim,gcc的使用
    nginx + nginx-rtmp-module + springboot 搭建直播流服务器实现推流、拉流实时直播功能
    如何选择合适的自动化测试工具?
    Java 成员内部类
    centos安装TDengine
    【vue】主分支外的一些知识点
  • 原文地址:https://blog.csdn.net/u012076669/article/details/133419708