Content deleted Content added
Tags: Mobile edit Mobile web edit |
LucasBrown (talk | contribs) Changing short description from "The average number of clock cycles per instruction" to "Aspect of CPU performance" |
||
(3 intermediate revisions by 3 users not shown) | |||
Line 1:
{{Short description|Aspect of CPU performance}}
{{Refimprove|date=December 2009}}
In [[computer architecture]], '''cycles per instruction''' (aka '''clock cycles per instruction''', '''clocks per instruction''', or '''CPI''') is one aspect of a [[central processing unit|processor]]'s performance: the average number of [[clock cycle]]s per [[Instruction (computer science)|instruction]] for a program or program fragment.<ref>{{cite book |title=Computer Organization and Design: The Hardware/Software Interface|url=https://archive.org/details/computerorganiza00henn|url-access=registration|
== Definition ==
The average of Cycles Per Instruction in a given process ({{math|CPI}}) is defined by the following [[Weighted arithmetic mean|weighted average]]:
: <math>
\mathrm{CPI} := \frac{\Sigma_i(\mathrm{IC}_i)(\mathrm{CC}_i)}{\mathrm{IC}} = \frac{\Sigma_i(\mathrm{IC}_i \cdot \mathrm{CC}_i)}{\Sigma_i(\mathrm{IC}_i)}
</math>
Where <math>
==Explanation==
|