Clock frequency 2026-11-05
Clock frequency is the number of cycles of a clock signal per unit time. If its period is , its frequency is . A hertz clock has a nominal period of about seconds. The clock coordinates timed operations; it does not specify how many complete program instructions are performed in each cycle.
For a fixed-frequency processor, execution time can be written as instruction count times average cycles per instruction divided by frequency. Raising frequency can improve that component of runtime, but it may also require a different pipeline organization or increase power and thermal constraints. Memory waits and dependencies can leave some cycles without completed instructions, while superscalar execution can complete several instructions in one cycle. Performance comparisons must therefore include the workload and microarchitecture, not only the clock rating.
Computer architecture Created 2026-10-31 Updated 2026-11-05
Computer architecture studies the organization and behaviour of computers, connecting the operations visible to software with the hardware that executes them. An instruction set architecture specifies the machine-level contract, including instructions, accessible processor registers and addressing behaviour. A microarchitecture is a particular implementation of that contract, including execution units, instruction pipelining and memory caches.[ref]
Two CPUs can implement the same instruction set architecture while taking different times to run the same computer program. One might overlap independent instructions or use a larger memory cache; neither choice changes what an addition instruction is required to compute. A useful performance model writes execution time as instruction count times average cycles per instruction divided by clock frequency. The factors interact: a design that raises clock frequency can also change cycles per instruction. This separates a program's required behaviour from the engineering choices that determine its cost.
Cycles per instruction 2026-11-05
Cycles per instruction is the average number of processor clock cycles spent per counted instruction for a specified execution interval and counting convention. If instructions complete in cycles, . At constant clock frequency , execution time satisfies
For example, completed instructions at CPI 1.5 and hertz take 0.5 seconds.
The value depends on instruction mix, dependencies, cache misses, branch behavior and the chosen microarchitecture. It can be less than one when several instructions complete per cycle. A long-latency instruction need not prevent other independent work from overlapping, so individual instruction latencies cannot simply be added to predict elapsed time. Comparing processors by frequency alone ignores both CPI and the number of instructions needed for the same task.