The fifth generation (5G) architecture represents the most recent advancement in mobile networks and is presently operational in various global places. Several new use cases and applications have been introduced, with a specific focus on improving throughput, reducing latency, minimising packet loss, optimising CPU usage, and maximising memory utilisation. In order to effectively address each scenario, it is necessary to integrate the most advanced technology, putting in significant effort to optimise resources and ensure system adaptability. This strategy will establish an architecture capable of accommodating many scenarios of a shared physical infrastructure by using techniques such as virtualization and cloud-based service deployment. Therefore, in this study, a test was carried out related to the performance of the 5G core network (CN) on bare metal servers and virtual private servers (VPSs). The quality of service (QoS) using Wireshark and Iperf3 is tested by utilizing ‘cpustat’ and free tools. The results of performance comparisons of these two methods on the 5G CN shows throughput values of ≥10 Gbps ≤20 Gbps, latency values of ≤4 ms, and packet loss values of 0%, in accordance with IMT 2020 standards. Thus, the ideal 5G CN services can be realized.