boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Java版 - How to compute round-trip time to webser
相关主题
How to connect to SQL2000?
why it does not work?? :(((
how to multicast objects to clients in java?
请问一个serialize class object下载运行的问题
socket and simple web browser
Web Service怎么让多个api call share 同一个 connection ?? (转载)
请教:performance issue
Tomcat用一阵之后就不行了?
问个很简单的问题?
help about bitstream writer
相关话题的讨论汇总
话题: client话题: compute话题: server话题: webser话题: now
进入Java版参与讨论
1 (共1页)
g****n
发帖数: 18
1
I am simulating a webserver using Java. I am using Internet Explorer as a
client connecting, say http://localhost:8080 and then a webpage pop up.
Now it is required to compute round-trip time from the client to the server
and back to the client. For example, the client can send a 100-byte package to
the server and the server returns the package to the client, then it is
considered the RTT.
Now my question is, how do I do it since I am using a web browser as the
client?
Any suggestions?
Thanks!!!
g*****g
发帖数: 34805
2
Well, simulate a web browser is even easier than the
server. Just send a http request, and wait for the
response. You certainly can time it.

【在 g****n 的大作中提到】
: I am simulating a webserver using Java. I am using Internet Explorer as a
: client connecting, say http://localhost:8080 and then a webpage pop up.
: Now it is required to compute round-trip time from the client to the server
: and back to the client. For example, the client can send a 100-byte package to
: the server and the server returns the package to the client, then it is
: considered the RTT.
: Now my question is, how do I do it since I am using a web browser as the
: client?
: Any suggestions?
: Thanks!!!

g****n
发帖数: 18
3
Thanks, but can you be a little more specific about simulating a web browser?
Do you know where I can find similar code and pseudo-code? I am new to Java
and do not know it very well.
Thanks a lot!

server
package to

【在 g*****g 的大作中提到】
: Well, simulate a web browser is even easier than the
: server. Just send a http request, and wait for the
: response. You certainly can time it.

m******t
发帖数: 2416
4

JMeter could be helpful for you.
http://jakarta.apache.org

【在 g****n 的大作中提到】
: Thanks, but can you be a little more specific about simulating a web browser?
: Do you know where I can find similar code and pseudo-code? I am new to Java
: and do not know it very well.
: Thanks a lot!
:
: server
: package to

1 (共1页)
进入Java版参与讨论
相关主题
help about bitstream writer
怎样吧byte[]变成java.security.Key?
如何看一个xml里的carriage return
请教高手如何用JUnit模拟真实的Servlet容器 (e.g. Jboss里的tomcat), 具体需求请进
怎麼得到字符串中的raw bytes?
How to parse the bytes[]
java multi-threading issue比较tricky
如何学习用Java开发Web Service?
怎么把一个Map放到queue里?
Why aren't cookies stored by my servlets accessible to my CGI scripts or ASP pages?(FAQ)
相关话题的讨论汇总
话题: client话题: compute话题: server话题: webser话题: now