Calculate response time for a webpage with non-persistent HTTP

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
New on Educative
Learn to Code
Learn any Language as a beginner
Develop a human edge in an AI powered world and learn to code with AI from our beginner friendly catalog
🏆 Leaderboard
Daily Coding Challenge
Solve a new coding challenge every day and climb the leaderboard

Free Resources

Copyright ©2025 Educative, Inc. All rights reserved