This study compares the local losses of a radial compressor in the range from surge to choke considering shock phenomena, boundary layer separation, and mixing mechanisms. For this purpose, formulation of the local entropy generation rate (EGR) is added to the computational fluid dynamics (CFD) solver, which models the turbulent flow field of the compressor through the RANS approach. For validation, the numerical pressure rise curve of the compressor is compared with the experimental data. The results indicate that at the design point, the impeller, diffuser, and the volute account for approximately 50.8%, 30.0%, and 12.3% of the EGR, respectively, with approximately 5% in the impeller backspace, 1% in the diffuser cavity, and less than 0.5% in the inlet duct. Approaching the surge condition, local losses due to mixing and shock waves decline while boundary layer losses increase. Based on comprehensive analysis of the leading-edge boundary layer, the largest dead-air zone is found at the design point, resulting in a lower diffusion entrance loss and a higher mixing loss. Furthermore, the EGR variation in the diffuser channel is investigated by shedding light on mixing dynamics and classification of the channel flow regime into three different zones based on mixing ratio (MR). The outcomes show that the flow regime tends to mix more quickly at a higher MR, resulting in a slight decrease in EGR, which benefits compressor performance. We demonstrate that the mixing rate of flow regimes decreases in both the leading-edge boundary layer and the radial diffuser approaching the surge margin.