Simulation, Testing and Validation · Test methodology
Performance Testing
Also known as performance efficiency testing, load testing, latency testing
Testing that measures how a component or system uses time, resources and capacity, such as latency, throughput, CPU and memory, under defined workloads, and checks the results against requirements.
Explanation
The ISTQB glossary (version 4.3) defines performance testing as testing to determine the performance efficiency of a component or system, where performance efficiency, following ISO/IEC 25010, is the degree to which it uses time, resources and capacity when performing its functions. Performance testing checks a system against its own requirements; benchmarking compares systems against a common reference.
In vehicles the key quantities include sensor-to-actuator end-to-end latency, jitter, deadline misses, CPU and GPU utilisation, memory footprint, network or bus load and behaviour under thermal limits. For ROS 2 and DDS-based software, Apex.AI's performance_test tool measures publisher-to-subscriber latency from timestamps, CPU usage, resident memory and lost samples, with configurable message types, publisher and subscriber counts, QoS settings and middleware implementations.
Results depend strongly on the test setup: hardware, operating-system configuration, background load and logging overhead. For real-time systems, tail percentiles and worst-case values matter more than averages, and runs must be long enough to capture rare spikes. Laboratory results may differ from in-vehicle conditions such as high ambient temperature.
How it works
Requirements are stated in measurable form, for example a latency limit at a given percentile. A representative workload and environment are set up, timestamps and resource counters are instrumented, and the test runs long enough to observe tail behaviour. Distributions are analysed and compared with the limits, and the test is repeated after each relevant change.
Automotive applications
- Verifying sensor-to-actuator latency budgets
- Tuning middleware and QoS configurations
- Checking inference latency and throughput
- Verifying CPU, memory and bus-load budgets
Example
Using performance_test, a team publishes large point-cloud messages at 10 Hz between two ROS 2 processes with different DDS implementations, logging per-sample latency, CPU and memory, and selects the configuration whose worst-case latency stays within the perception pipeline's budget.
An illustrative example: any figures in it are worked numbers, not measurements.
References
- ISTQB Standard Glossary of Terms used in Software Testing, Version 4.3 (March 2024) (opens in a new tab)
“Testing to determine the performance efficiency of a component or system.”
- performance_test (ROS package) (opens in a new tab)
“Tool to test performance of ROS 2 and DDS data layers and communication.”
Definitions are original summaries. Standards text is not reproduced; follow the links for the official publications.