Trusted answers to developer questions
Trusted Answers to Developer Questions

Related Tags

http
web development
networks

Calculate response time for a webpage with non-persistent HTTP

Educative Answers Team

Non-persistent (a.k.a. HTTP 1.0) is one of two types of HTTP connections. In non-persistent HTTP, a new client-server connection is established every time a client requests a response object from the server.

Read more about persistent and non-persistent HTTP here.

The response time is determined by making an HTTP GET request to the web page URL and measuring the time it takes for the first object to be returned.

Formula

response time=2RTT+transmit timeresponse\ time = 2RTT + transmit\ time

Where ​RTT is the round-trip timeThe time it takes for a packet to go from the client to the server and then back to the client. to set up the initial TCP connection, and transmit time is the time it takes for the requests object to be returned.

svg viewer

RELATED TAGS

http
web development
networks
Copyright ©2022 Educative, Inc. All rights reserved
RELATED COURSES

View all Courses

Keep Exploring