Performance, Power and Architecture EvaluationIntroductionComputer architecture is evaluated not by a single specification but by how effectively a system completes useful work under defined constraints. A processor with a high clock frequency may perform poorly on a particular workload if its instruction set, cache hierarchy, memory system, or software environment causes a high number of cycles per instruction. Similarly, a server with excellent peak performance may be an unsuitable purchase if its power, cooling, licensing, reliability, or response-time characteristics do not match the organisation’s needs. Performance evaluation therefore connects architectural theory with operational decisions. It provides methods for measuring execution time, throughput, latency, speedup, power and energy; interpreting monitoring data; applying Amdahl’s Law; and selecting or upgrading systems using evidence rather than marketing claims. Learning ObjectivesBy the end of this chapter, you should be able to: - distinguish latency, response time, throughput and capacity;
- relate clock rate, instruction count, CPI and execution time;
- calculate and interpret speedup using Amdahl’s Law;
- compare performance, power and energy measurements;
- design a fair benchmark and recognise common measurement errors;
- interpret processor, memory, storage and network monitoring data;
- make evidence-based procurement, capacity-planning and upgrade recommendations;
- explain the ethical and operational risks of misleading performance comparisons.
1. Performance as a Measurable PropertyLatency is the time required to complete one operation. For example, the latency of a disk request may be measured in milliseconds, while the latency of a processor instruction is measured in cycles or fractions of a nanosecond. Response time is the elapsed time observed by a user or requesting application. It can include queueing, computation, storage access, network delay and operating-system overhead. Throughput is the amount of useful work completed per unit time. Examples include transactions per second, web requests per second, completed jobs per hour and gigabytes processed per second. Capacity is the maximum sustainable workload a system can support while meeting defined service objectives, such as a maximum response time or error rate. Capacity is not necessarily equal to peak benchmark throughput. Latency and throughput are related but not interchangeable. A system may process many independent requests concurrently and achieve high throughput while an individual request still has substantial latency. Conversely, a low-latency system may have limited throughput if it cannot support concurrency. For a stable system, a useful approximation is Little’s Law: L = λW Here, L is the average number of items in the system, λ is the average arrival or completion rate, and W is the average time an item spends in the system. The relationship assumes a stable long-run system in which the average arrival rate equals the average departure rate. For example, at 200 requests per second and an average response time of 0.05 seconds, the average number of requests in the system is 10. 2. The Processor Performance ModelFor a program, the basic CPU execution-time model is: CPU time = Instruction count × CPI × Clock cycle time Since clock cycle time is the reciprocal of clock rate: CPU time = (Instruction count × CPI) ÷ Clock rate Instruction count is the number of instructions executed by the program. CPI, or cycles per instruction, is the average number of clock cycles required per instruction. Clock rate is measured in hertz, and CPU time is measured in seconds. These equations describe CPU time and exclude time waiting for input/output unless that time is included in the measured execution interval. The total number of CPU cycles is: CPU cycles = Instruction count × CPI The average CPI is a weighted average when different instruction classes have different costs: CPIaverage = ∑(CPIi × Instruction fractioni) The instruction fractions must sum to 1. This model assumes that the instruction count, CPI and clock rate are defined for the same program, input and measurement boundary. Worked Example 1: Comparing Two ProcessorsA program executes 2.4 × 10⁹ instructions. Processor A runs at 3.0 GHz with a CPI of 1.5. Processor B runs at 3.6 GHz with a CPI of 2.0. For A: CPU timeA = (2.4 × 109 × 1.5) ÷ (3.0 × 109) = 1.2 s For B: CPU timeB = (2.4 × 109 × 2.0) ÷ (3.6 × 109) ≈ 1.33 s Processor A is faster for this program, despite having the lower clock rate. Its lower CPI more than compensates for the frequency difference. The speedup of A over B is: Speedup = Old time ÷ New time = 1.33 ÷ 1.20 ≈ 1.11 Thus A is approximately 1.11 times as fast, or about 10% faster than B for this workload. Why Clock Rate Alone Is InsufficientClock frequency measures cycles per second, not completed instructions or useful work per second. Performance also depends on: - instruction count generated by the compiler;
- average CPI and pipeline stalls;
- cache and memory behaviour;
- branch prediction accuracy;
- number of cores and useful parallelism;
- operating-system and virtualisation overhead;
- accelerator availability; and
- the application and its input data.
A modern processor may change frequency dynamically through turbo modes, thermal control or power management. Therefore, a nominal frequency is not necessarily the frequency sustained during a complete workload. 3. Speedup and Amdahl’s LawSpeedup compares an original implementation with an improved implementation: Speedup = Execution timebefore ÷ Execution timeafter A speedup greater than 1 indicates improvement. Percentage reduction in execution time is: Time reduction = (Timebefore − Timeafter) ÷ Timebefore × 100% A common mistake is to describe a 2-fold speedup as a 200% improvement. It is a 2× performance level, corresponding to a 50% reduction in execution time or a 100% increase in performance relative to the original performance. Amdahl’s Law estimates the maximum speedup from improving only part of a workload: Speedupoverall = 1 ÷ [(1 − f) + (f ÷ s)] Here, f is the fraction of original execution time affected by the improvement, and s is the speedup of that fraction. The remaining fraction, 1 − f, is unchanged. The formula assumes that the fractions are measured in the original execution and that the improvement does not introduce unmodelled overhead. If the improved part becomes infinitely fast, the limiting speedup is: Speedupmaximum = 1 ÷ (1 − f) Worked Example 2: Evaluating an UpgradeA database workload spends 40% of its time waiting for storage. A new storage subsystem makes that part 5 times faster. Speedupoverall = 1 ÷ [(1 − 0.40) + (0.40 ÷ 5)] = 1 ÷ (0.60 + 0.08) = 1 ÷ 0.68 ≈ 1.47 The complete workload is approximately 1.47 times as fast, not 5 times as fast. Even infinitely fast storage could provide at most: Speedupmaximum = 1 ÷ 0.60 ≈ 1.67 This result helps an engineer decide whether storage is the appropriate investment. If CPU time, locking or network delay dominates after the upgrade, further storage spending will have little benefit. For parallel systems, a related form uses p processors and a parallel fraction f: Speedupparallel = 1 ÷ [(1 − f) + (f ÷ p)] This idealised expression assumes equal work distribution and no communication, synchronisation, scheduling or memory-contention overhead. Real speedup is usually lower. 4. Benchmarks and Experimental MethodA benchmark is a defined workload used to compare systems. A useful benchmark resembles the intended application and specifies hardware, software, configuration, data set, input size, concurrency, warm-up procedure and measurement method. Types of Benchmarks| Type | Purpose | Strength | Limitation |
|---|
| Microbenchmark | Measures one operation or subsystem | Isolates a mechanism | May not represent real work | | Kernel benchmark | Measures a computational component | Useful for focused optimisation | Omits system interactions | | Synthetic benchmark | Generates controlled activity | Repeatable and convenient | Can be unrepresentative | | Application benchmark | Runs a realistic application | Strong practical relevance | More difficult to reproduce | | Transaction benchmark | Measures defined business operations | Supports capacity planning | Depends heavily on workload mix | | Benchmark suite | Provides several workloads | Broader comparison | Aggregate scores may hide weaknesses |
A fair comparison changes one major factor at a time where possible. The same compiler settings, operating-system version, input data and test duration should be used. Results should be repeated because background activity, thermal throttling and system noise can affect measurements. The arithmetic mean is appropriate for repeated measurements of a quantity such as elapsed time when each run has equal significance. For ratios such as benchmark performance relative to a reference, the geometric mean is often preferred when aggregating normalised ratios: Geometric mean = (x1 × x2 × … × xn)^(1/n) The values x1 through xn must be positive. A benchmark report should show variation, not only a single best result. Median, minimum, maximum and selected percentiles are useful. The 95th percentile latency means that 95% of observations are at or below that value; it does not mean the average latency. Common Benchmarking ErrorsImportant errors include comparing different workloads, using a data set that fits in one system’s cache but not another’s, reporting peak rather than sustained performance, ignoring warm-up effects, failing to record compiler versions, and measuring client-side time for one system but server-side time for another. A benchmark can also be technically correct yet strategically irrelevant if it does not represent the organisation’s service objectives. 5. Power, Energy and Performance per WattPower is the rate of energy use and is measured in watts: Power = Energy ÷ Time Energy consumed over an interval is: Energy = Power × Time These equations assume power is constant. If power varies, energy is the integral of power over time: E = ∫ P(t) dt where P(t) is instantaneous power in watts and E is energy in joules. One watt equals one joule per second. Electricity billing commonly uses kilowatt-hours; 1 kWh equals 3.6 × 10⁶ joules. Performance per watt measures useful performance divided by power. Energy to solution measures the energy required to complete a defined job: Energytosolution = Average power × Execution time A faster system is not automatically more energy efficient. For example, System A uses 250 W for 20 seconds, consuming 5,000 J. System B uses 180 W for 35 seconds, consuming 6,300 J. A uses more instantaneous power but less total energy for the job. Power measurements should specify whether they refer to the CPU package, complete server, rack, or facility. Cooling and power-delivery losses matter in data centres. Power-saving features may reduce energy during idle periods but can introduce latency when components wake or change frequency. 6. Interpreting Monitoring DataMonitoring turns system activity into evidence. Useful measurements include: - CPU utilisation, run queue length, instructions per cycle and frequency;
- cache-miss rates, branch mispredictions and stall cycles;
- memory utilisation, bandwidth, page faults and swap activity;
- storage I/O operations per second, bandwidth, queue depth and latency;
- network throughput, packet loss, retransmissions and connection counts;
- response-time percentiles, request rate, error rate and queue length;
- power draw, temperature, fan speed and throttling events.
A high CPU utilisation value does not by itself prove that the CPU is the bottleneck. A process may consume CPU while stalled on memory, or the system may have many runnable tasks competing for a small number of cores. Likewise, low CPU utilisation with poor response time may indicate storage, network, lock or external-service delay. Interpret metrics together. For example: | Observation | Possible interpretation | Evidence to seek |
|---|
| High CPU, low I/O wait, rising queue | CPU saturation | Per-core utilisation, run queue, CPI | | Low CPU, high storage latency | Storage bottleneck | I/O queue depth, service time | | High cache misses and memory bandwidth | Memory pressure | Working set, locality, NUMA placement | | High network retransmissions | Network congestion or faults | Packet loss, interface errors | | Increasing latency with stable throughput | Queueing or saturation | Concurrency, queue length, percentiles | | Falling frequency with high temperature | Thermal throttling | Temperature and power logs |
A good investigation establishes a baseline during normal operation, defines a time window, correlates metrics with workload events, and distinguishes correlation from causation. Monitoring systems also have overhead and may sample rather than continuously observe; this limitation should be documented. 7. Capacity Planning and Upgrade DecisionsCapacity planning estimates whether resources can support present and future demand. A practical process is: - define service objectives, such as 200 requests per second and 95th-percentile latency below 100 ms;
- measure current workload, including peak and seasonal patterns;
- identify the limiting resource using correlated evidence;
- model demand growth and safety margin;
- test candidate changes with a representative benchmark;
- compare technical benefit, cost, power, risk and supportability;
- monitor after implementation and revise the model.
A simple linear forecast is: Future demand = Current demand × (1 + growth rate)years This is an assumption-based forecast, not a law. It is unsuitable when demand is seasonal, discontinuous or constrained by market changes. Capacity should be planned for sustainable performance, not merely maximum laboratory output. Procurement Evaluation FrameworkA procurement specification should include: - workload and acceptance tests;
- required latency percentiles and throughput;
- availability, expandability and compatibility;
- memory capacity, storage endurance and network connectivity;
- power, cooling, physical space and operating cost;
- security updates, warranty, vendor support and lifecycle;
- software licensing and migration costs;
- data-protection, privacy and regulatory requirements.
Total cost of ownership includes purchase, installation, energy, cooling, administration, licensing, maintenance, downtime and disposal. A cheaper server can be more expensive if it consumes substantially more energy or requires specialised support. The correct upgrade is not always the largest component. If profiling shows that only 20% of execution time is CPU-bound and the remainder is due to storage or locking, purchasing a faster CPU may produce little improvement. Amdahl’s Law and measured bottleneck data should guide the decision. 8. Applied Case: Selecting an Upgrade for a College Registration ServiceThis illustrative case uses fictional data. BackgroundA college registration service experiences slow responses during enrolment. The existing server has eight cores, 64 GB of memory and network-attached storage. During normal operation, average response time is 180 ms; at peak demand, the 95th-percentile latency reaches 1.8 seconds. The service objective is a 95th-percentile latency below 500 ms at 300 requests per second. Problem and AnalysisMonitoring during a representative peak test records 280 requests per second, CPU utilisation of 55%, storage latency of 18 ms, and a storage queue depth that grows steadily. Database profiling shows that 45% of response time is attributable to storage waits, 25% to CPU processing, and 30% to locking and application overhead. The evidence does not support a CPU-first upgrade. A proposed solid-state storage system is expected to make storage-related time six times faster. Applying Amdahl’s Law with f = 0.45 and s = 6: Speedup = 1 ÷ [(1 − 0.45) + (0.45 ÷ 6)] = 1 ÷ (0.55 + 0.075) = 1.60 The estimated average response time becomes approximately 180 ÷ 1.60 = 112.5 ms. This estimate does not guarantee the 95th percentile because queueing and locking may behave nonlinearly. A load test is therefore required. Approach and SolutionThe team tests three configurations using the same application version, database, data set and 30-minute workload profile. It records throughput, median and 95th-percentile latency, errors, power and cost. It also verifies that the proposed storage provides adequate endurance and data protection. The test shows that faster storage meets the latency target until approximately 330 requests per second. At higher load, database locks become dominant. A CPU upgrade alone fails the latency target and provides only a 7% throughput improvement. The storage upgrade costs less than a complete server replacement and consumes 35 W less at the measured workload. Outcome and Learning PointsThe college selects the storage upgrade, adds database index and transaction improvements, and retains capacity headroom for projected enrolment growth. Post-deployment monitoring confirms a 95th-percentile latency of 420 ms at 300 requests per second. The case demonstrates that: - measured bottlenecks are more useful than component popularity;
- average latency alone would have hidden peak-user experience;
- Amdahl’s Law gives a limit and estimate, not a substitute for testing;
- procurement should evaluate power, reliability and lifecycle as well as speed;
- an upgrade can expose a new bottleneck, so monitoring must continue.
9. Limitations, Governance and Contemporary PracticePerformance measurements are conditional claims. Results depend on workload, configuration, compiler, firmware, temperature, concurrency and measurement boundaries. Benchmark results should therefore be reported with assumptions and uncertainty rather than presented as universal rankings. Organisations should govern benchmark data carefully. Production traces may contain personal information, credentials, customer identifiers or commercially sensitive activity. Data should be minimised, anonymised where appropriate, access-controlled and retained according to policy and law. Procurement claims should be auditable, and vendors should disclose test conditions sufficiently for fair comparison. Energy evaluation has environmental as well as financial significance. Decisions should consider operational electricity, cooling, embodied manufacturing impacts, equipment life and responsible disposal. Performance-per-watt claims should identify the workload and boundary of measurement. AI-based monitoring and capacity forecasting can detect anomalies, classify workloads and predict demand. However, models may produce false alarms, inherit biased historical patterns or obscure the reason for a recommendation. AI should support—not replace—validated measurements, human review, security controls and clear accountability. Training or analysing telemetry must also respect privacy and data-governance requirements. Contemporary architectures increasingly combine general-purpose cores with GPUs, neural-processing units, compression engines and programmable accelerators. Their value depends on workload suitability, data-transfer overhead, programming effort and software support. A theoretical accelerator speedup may disappear if data movement dominates. Evaluation must therefore measure end-to-end application time, not only accelerator kernel time. Best-Practice ChecklistBefore approving an architecture or upgrade decision: - define the business workload and service-level objectives;
- measure both typical and peak conditions;
- use execution time, throughput and latency metrics appropriate to the service;
- record configuration, software versions and measurement boundaries;
- use representative data and repeat tests;
- inspect percentiles and variability, not only averages;
- apply Amdahl’s Law to estimate limits;
- check power, energy, cooling and total cost of ownership;
- verify reliability, security, privacy and regulatory requirements;
- run an acceptance test before purchase or deployment;
- monitor the system after change and validate predicted benefits.
Chapter SummaryPerformance evaluation requires more than comparing clock rates. CPU execution time depends on instruction count, CPI and clock rate, while complete service performance also depends on memory, storage, networks, operating systems and queueing. Latency describes the time for an operation; throughput describes completed work per unit time; capacity describes sustainable service under stated objectives. Speedup compares before-and-after execution times. Amdahl’s Law shows that an improvement is limited by the fraction of time it affects, making bottleneck identification essential. Benchmarks are credible only when workloads, configurations and measurement methods are representative and transparent. Power is the rate of energy use, whereas energy to solution captures the total energy required to complete a job. Monitoring should correlate CPU, memory, storage, network, queueing, latency, thermal and power data. Procurement and capacity planning should combine benchmark evidence with cost, lifecycle, reliability, security, privacy and environmental considerations. Evidence-based decisions measure the real workload, test proposed changes, acknowledge limitations and validate outcomes after deployment. Key TermsLatency: Time required to complete one operation. Response time: Elapsed time experienced by a requester, including processing and waiting. Throughput: Useful work completed per unit time. Capacity: Sustainable workload supported while meeting defined service objectives. Clock rate: Number of processor clock cycles per second. CPI: Average clock cycles required per executed instruction. Instruction count: Number of instructions executed by a program. CPU time: Time spent executing program instructions on the processor. Speedup: Ratio of old execution time to new execution time. Amdahl’s Law: Model showing the limit of improving only part of a workload. Benchmark: Defined workload used to measure or compare systems. Microbenchmark: Test focused on a small operation or subsystem. Percentile latency: Latency value at or below which a stated percentage of observations falls. Power: Rate of energy consumption, measured in watts. Energy to solution: Total energy required to complete a defined job. Performance per watt: Useful performance divided by power consumption. Bottleneck: Resource that substantially limits system performance. Capacity planning: Estimation of resources needed for present and future demand. Total cost of ownership: Purchase and lifecycle costs of operating a system. Review QuestionsShort Answer Questions- Define latency and throughput, and explain why they are not interchangeable.
- State the CPU execution-time equation and define each variable.
- Why can a processor with a higher clock rate be slower for a particular program?
- Distinguish power from energy to solution.
- What information should be recorded when reporting a benchmark result?
Long Answer Questions- Explain how instruction count, CPI and clock rate jointly determine CPU performance. Include an example of why clock rate alone is inadequate.
- Describe Amdahl’s Law, its assumptions and its importance in upgrade planning.
- Compare microbenchmarks, synthetic benchmarks and application benchmarks, including appropriate uses and limitations.
- Explain how CPU, memory, storage, network and latency metrics can be interpreted together during bottleneck analysis.
- Develop a procurement framework for a server that considers performance, power, reliability, security and total cost of ownership.
Analytical / Application Questions- A workload spends 35% of its time in computation that can be made four times faster. Calculate the overall speedup and explain the result.
- A service handles 150 requests per second with an average response time of 80 ms. Use Little’s Law to estimate the average number of requests in the system. State the assumption required.
- A proposed server uses 300 W for 25 seconds per job, while an alternative uses 220 W for 40 seconds. Calculate the energy used by each and recommend one if energy to solution is the primary criterion.
Multiple Choice Questions with AnswersQuestion 1Which expression correctly represents CPU execution time? A. Instruction count × CPI ÷ clock rate B. Clock rate × CPI ÷ instruction count C. Instruction count × clock rate ÷ CPI D. CPI ÷ instruction count × clock rate Correct Answer: A. Instruction count × CPI ÷ clock rate Question 2A processor executes 3 × 10⁹ instructions at a CPI of 2 and a clock rate of 3 GHz. What is the CPU time? A. 0.5 s B. 1 s C. 2 s D. 6 s Correct Answer: C. 2 s Question 3A workload has a fraction f = 0.5 improved by a factor of 4. What is the overall speedup according to Amdahl’s Law? A. 1.33× B. 1.60× C. 2.00× D. 4.00× Correct Answer: B. 1.60× Question 4Which metric is most directly concerned with the time experienced by an individual request? A. Throughput B. Latency C. Capacity D. Power factor Correct Answer: B. Latency Question 5A system consumes 200 W for 30 seconds to complete a job. How much energy does it use? A. 6 J B. 170 J C. 6,000 J D. 60,000 J Correct Answer: C. 6,000 J Question 6Which condition most strongly indicates that storage, rather than CPU, may be the bottleneck? A. High CPU utilisation and low I/O latency B. Low CPU utilisation and steadily rising storage queue depth C. Low CPU utilisation and no waiting D. High clock frequency and low temperature Correct Answer: B. Low CPU utilisation and steadily rising storage queue depth Question 7Why are percentile latency measurements useful? A. They show only the fastest request B. They replace the need for workload definition C. They describe the distribution and tail experience of requests D. They measure electrical energy directly Correct Answer: C. They describe the distribution and tail experience of requests Question 8Which statement about clock rate is correct? A. It alone determines application performance B. It measures cycles per second but not useful work per cycle C. It is identical to throughput D. It remains constant under all operating conditions Correct Answer: B. It measures cycles per second but not useful work per cycle Question 9At 200 requests per second and an average response time of 0.05 seconds, what is the estimated average number of requests in the system? A. 4 B. 10 C. 40 D. 250 Correct Answer: B. 10 Question 10Which is the strongest basis for approving a hardware upgrade? A. The vendor’s highest peak benchmark score alone B. A higher advertised clock rate alone C. Representative workload measurements linked to service objectives and total cost D. The largest available memory capacity regardless of workload Correct Answer: C. Representative workload measurements linked to service objectives and total cost
|