Java code for Test Server Response Time ExampleThis Java code snippet was generated automatically for the Test Server Response Time example.
<< Back to the Test Server Response Time example
Understanding HTTP TimingsDNS Resolution time: DNS resolution time is the time it takes for a server to receive and process a request from a client, also known as latency. If the DNS server information is available in the cache of your computer or browser, or if the DNS server is close to your location, then the latency is very short.
Connecting time: Connection time is the time it takes for the client to connect to the server. You can shorten connection times by using Keep-Alive connections.
TLS Setup time: TLS setup time (also known as TLS handshake time) is the time to establish a secure connection over SSL. Before the browser can establish a secure connection with the server, you need to complete several steps: confirm your identity, select algorithms, and exchange security keys.
Sending time: Sending time is the time it takes to send data, including HTTP headers, and POST content to the server. It mainly depends on your network bandwidth.
Waiting time: Waiting time is the amount of time the server takes to process the client's request. Includes the time it takes for the server to search the database for data and apply some business logic to the client request.
Receiving time: Receiving time is similar to Sending time, this is the time it takes to receive data, including HTTP headers and body from the server. It mainly depends on your network bandwidth.