日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當(dāng)前位置: 首頁 > 编程资源 > 综合教程 >内容正文

综合教程

MCPS & MIPS

發(fā)布時間:2023/12/13 综合教程 27 生活家
生活随笔 收集整理的這篇文章主要介紹了 MCPS & MIPS 小編覺得挺不錯的,現(xiàn)在分享給大家,幫大家做個參考.

MIPS:Million Instructions Per Second

MCPS:Million Cycles Per Second

MIPS = Total Instructions*Sampling frequency/(No of frames * Samples per frame*1000000)

MCPS = Total Cycles*Sampling frequency/(No of frames * Samples per frame*1000000)
MHz is same as MCPS

And as we know , some instructions may take more than 1 cycle ,so sometimesMIPS >= MCPS.

But as the Parallel Processing techniquedeveloping,one cyclecan excute more than oneinstruction, so sometime MCPS>=MIPS

Also some time the frame length is not uniform, so the they will be

MIPS = Total Instructions/(Total playout time *1000000)

MHz=MCPS = Total Cycles/(Total playout time*1000000)

For example:

struct timespec start, end;

unsinged long diff_ns;

clock_gettime(CLOCK_THREAD_CPUTIME_ID, &start);

process()// process fixed in CPU core, process N samples;

clock_gettime(CLOCK_THREAD_CPUTIME_ID, &end);

diff_ns = (end.tv_sec - start.tv_sec) * 1000000000 + (end.tv_nsec - start.tv_nsec) ;

cpu_freq: 1GHz. 1秒鐘經(jīng)過的時鐘周期

Cycles是處理N個samples所需要的時鐘周期

Cyles:diff_ns * cpu_freq = (diff_ns / 1000000000) * 1 GHz =(diff_ns / 1000000000) * 1000000000Hz;

處理N個samples所需要的時間為:N samples / sampling frequency

MCPS = (Cycles / (N Samples / Sample Frequency)) / 1000000;

總結(jié)

以上是生活随笔為你收集整理的MCPS & MIPS的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網(wǎng)站內(nèi)容還不錯,歡迎將生活随笔推薦給好友。