There are several ways to determine which server is faster in a website. Here are a few methods you can use:
Measure the response time: One way to measure the speed of a server is to measure the time it takes for the server to respond to a request. This is called the "response time" or "latency." You can use tools like ping or traceroute to measure the response time of a server. These tools send a request to the server and measure the time it takes for the server to respond.
Use a web performance testing tool: There are several tools available that can help you measure the performance of a website or server. These tools can simulate requests from multiple users and measure the response time, throughput, and other performance metrics. Some examples of web performance testing tools include LoadRunner, Apache JMeter, and WebLOAD.
Monitor the server's resource utilization: Another way to measure the performance of a server is to monitor its resource utilization, such as CPU, memory, and network usage. If the server is heavily loaded, it may be slower to respond to requests. You can use tools like top, htop, or perfmon to monitor the resource utilization of a server.
It is important to keep in mind that the performance of a server can be affected by a variety of factors, such as network conditions, the workload of the server, and the configuration of the server itself. To get a more accurate picture of a server's performance, it is a good idea to measure it under different conditions and over a period of time.