← กลับหน้าหลัก
บทที่ 2

สมรรถนะของระบบคอมพิวเตอร์

Computer System Performance

เนื้อหาหลัก Key Topics

สูตรสำคัญ Key Formulas

CPU Time
\[ \text{CPU Time} = \text{IC} \times \text{CPI} \times T_{\text{clock}} = \frac{\text{IC} \times \text{CPI}}{f_{\text{clock}}} \]

IC = Instruction Count, CPI = Cycles Per Instruction, T = clock period, f = clock frequency

Speedup (กฎของ Amdahl)
\[ \text{Speedup} = \frac{1}{(1 - f) + \dfrac{f}{S}} \]

f = สัดส่วนของส่วนที่ปรับปรุง, S = speedup ของส่วนนั้น

การเปรียบเทียบสมรรถนะ
\[ \text{Speedup}_{A/B} = \frac{\text{Execution Time}_B}{\text{Execution Time}_A} = \frac{\text{Performance}_A}{\text{Performance}_B} \]

คำสำคัญ Key Terms

เวลาตอบสนอง · Response Time / Latency ปริมาณงาน · Throughput เวลาประมวลผล CPU · CPU Time จำนวนคำสั่ง · IC (Instruction Count) รอบต่อคำสั่ง · CPI (Cycles Per Instruction) ความถี่สัญญาณนาฬิกา · Clock Rate / Frequency เกณฑ์เปรียบเทียบ · Benchmark SPEC CPU กฎของ Amdahl · Amdahl's Law อัตราส่วนการเร็วขึ้น · Speedup