Skip to content

Performance Testing Metrics

  • A deep understanding of performance testing metrics not only helps comprehensively evaluate system performance but also provides reliable data for optimization decisions.
  • This guide systematically introduces the core performance metrics of AngusTester, helping you quickly grasp the meaning and usage of each metric.

Basic Counting Metrics

Quantify the core operations and data flow during testing, providing foundational data for performance analysis.

Metric NameParameter NameDescriptionKey PurposeCalculation Logic
Iteration CountiterationsNumber of test task executionsMeasure test coverageAccumulated execution count
Sample CountnNumber of valid data collection pointsEvaluate data validityCount valid sample points
Operation CountoperationsTotal number of request operations executedAssess system processing capacityAccumulated operation count
Transaction CounttransactionsNumber of completed business transactionsEvaluate business processing capacityAccumulated successful transactions
Bytes ReadreadBytesTotal data readAssess network/storage read loadAccumulated bytes read
Bytes WrittenwriteBytesTotal data writtenAssess network/storage write loadAccumulated bytes written

💡 Application Tip: Basic metrics must be analyzed with a time dimension to reveal performance characteristics.

Throughput Metrics

Key indicators reflecting the system's processing capacity per unit of time.

Request Throughput

Metric NameParameter NameDescriptionKey PurposeCalculation Formula
Operations Per SecondopsNumber of requests processed per secondEvaluate system processing capacityOperation count / Test duration
Transactions Per SecondtpsNumber of transactions completed per secondEvaluate business processing capacityTransaction count / Test duration

💡 Important Note: In single-interface testing scenarios, QPS test results and TPS values are equal.

Network Throughput

Metric NameParameter NameDescriptionKey PurposeCalculation Formula
Bytes Read Per SecondbrpsData read per secondEvaluate network receiving capacityBytes read / Test duration
Bytes Written Per SecondbwpsData written per secondEvaluate network sending capacityBytes written / Test duration

⚠️ Critical Threshold: When throughput reaches 80% of the system's theoretical peak, it may indicate an approaching performance bottleneck.

Latency Metrics

Core indicators measuring system response speed, directly impacting user experience.

Metric NameParameter NameDescriptionKey PurposeCalculation Logic
Average Response TimetranMeanAverage transaction response timeReflect overall system performanceTotal response time / Transaction count
Minimum Response TimetranMinBest response timeShow optimal performanceTake minimum value
Maximum Response TimetranMaxWorst response timeReveal performance bottlenecksTake maximum value
P50 Response TimetranP50Response time for 50% of requestsReflect typical response performance50th percentile after sorting
P75 Response TimetranP75Response time for 75% of requestsReflect good performance75th percentile after sorting
P90 Response TimetranP90Response time for 90% of requestsEvaluate high-quality performance90th percentile after sorting
P95 Response TimetranP95Response time for 95% of requestsEvaluate high service level95th percentile after sorting
P99 Response TimetranP99Response time for 99% of requestsEvaluate extreme-case performance99th percentile after sorting
P999 Response TimetranP999Response time for 99.9% of requestsEvaluate ultimate performance99.9th percentile after sorting

Error Metrics

Core indicators for evaluating system stability and reliability.

Metric NameParameter NameDescriptionKey PurposeCalculation Formula
Error CounterrorsNumber of errors occurredEvaluate system stabilityAccumulated error count
Error RateerrorRateProportion of errors occurredEvaluate system reliability(Error count / Operation count) × 100%
Error Cause DistributionerrorCauseCounterDistribution of error typesDiagnose root causesGroup statistics by error type

🔍 Diagnostic Tip: Connection timeouts and 5xx errors should be prioritized in error types.

Thread (Concurrency) Metrics

Reflect system concurrency processing capability and resource utilization efficiency.

Metric NameParameter NameDescriptionKey PurposeStatus Description
Thread Pool SizethreadPoolSizeCurrent thread pool capacityEvaluate system concurrency capacity-
Active Thread CountthreadPoolActiveSizeNumber of working threadsEvaluate resource utilization-
Maximum Thread Pool CapacitythreadMaxPoolSizeMaximum supported threadsEvaluate system expansion limit-
Thread Running StatusthreadRunningWhether the thread is runningMonitor thread statustrue = running
Thread Termination StatusthreadTerminatedWhether the thread is terminatedMonitor thread statustrue = terminated

Timestamp Fields

Field NameParameter NameDescription
Server TimestamptimestampServer-recorded time
Runner Timestamptimestamp0Sampling task-recorded time
Sampling Task NamenameSampling task identifier
Test DurationdurationTotal execution time
Sampling Durationduration0Single sampling time
Start TimestartTimeTest start time point
End TimeendTimeTest end time point

Key Considerations

  1. Metric Correlation: When latency increases, synchronously check error rate and throughput changes.
  2. Environmental Factors:
    • Network latency directly affects response time.
    • Test data scale impacts throughput performance.
  3. Scenario Differences:
    • E-commerce systems should focus on P99 latency.
    • Financial systems must ensure 0% error rate.
  4. Monitoring Strategy:
    • Establish performance baselines for comparison.
    • Set threshold-based alerts (e.g., error rate > 0.5%).
  5. Trend Analysis: Compare with historical data to identify performance degradation.

Released under the GPL-3.0 License.