Response time of web application using different url

I have a very basic doubt regarding web application url.

Suppose a web application is running locally on my machine.

Will there be any difference in the response time if I access the application using below two url ?

http://localhost:8080/SomeApplicationContext
http://hello:8080/SomeApplicationContext -- Assuming my machine name is hello


depends on whether or not you have hello in your hosts file. (same place where localhost is defined) if its not, then yes because your computer will have to check with DNS before it can access the resource, in which case the difference will close to the round trip latency of that request.


No difference, You can run the script/coding using http://localhost:8080/SomeApplicationContext from your own machine only, if you like to run this program from other pc/system you can use the http://hello:8080/SomeApplicationContext url ( you can run this url from your own machine also).

I hope this is perfect.


no. Why would that be? Response time depends on servers ability to serve the content -- that is latency in processing teh request and the other is network latency. In your case both are the same. So, no difference.

链接地址: http://www.djcxy.com/p/61192.html

上一篇: 将Visual Studio本地IIS 7调试虚拟路径设置为/

下一篇: 使用不同网址的Web应用程序的响应时间