There are differences in the way of public cloud and private cloud use network performance acceleration technologies (such as DPDK and SR-IOV), which will affect the performance of the 5GC network. This paper evaluates the difference in forwarding performance between AWS (public cloud) and the operator's private cloud by deploying Free5GC for testing. Under similar conditions, the 5GC forwarding performance of the private cloud using SR-IOV is higher than that of the public cloud, which is higher than that of the private cloud using DPDK.