Understand NCCL tests performance metrics
masterNCCL tests report performance using three primary metrics:
- Time: Measured in milliseconds (ms). This is most useful for small data sizes to measure constant overhead (latency). For large sizes, time becomes linear with size and is less useful than bandwidth.
- Algorithm Bandwidth (algbw): Calculated as
size / time. It represents how much data is processed per second and is useful for estimating how long a specific operation size will take. - Bus Bandwidth (busbw): A metric designed to reflect how optimally the hardware is being used, independent of the number of ranks. It applies a correction factor to the algorithm bandwidth to account for the specific communication pattern of the collective operation. This value can be directly compared to hardware peak bandwidths (e.g., NVLink, PCI, or network speeds).