Industrial scenarios put forward higher demands on data rate, latency and reliability of 5G networks. In order to further promote the integration and applications of 5G with the industrial field, a 5G network performance evaluation scheme based on factory environment is discussed in this paper. Moreover, to further reduce the transmission and circuitous route latency, a local user plane function (UPF) is also proposed. Combined with the wireless channel propagation model considered in factory scenario, latency, reliability performance and the relationship between data rate and distance are evaluated in a specific environment. It is shown through the measurement results, the proposed local UPF solution could reduce latency around 20%. Finally, recommendations on construction of 5G network in a typical factory environment are also given in this paper.