English 中文(简体)
衡量相对性
原标题:Measuring latency

我正致力于在 Java开展一个多功能项目,我正在努力改进我如何收集超常衡量结果。

我目前的设置是,定期发送一批UDP包裹,由服务器篡改,然后退回,然后计算和记录相应费用。 然后,我抽取样本数,以达到排位平均数。

这似乎是一种合理的解决办法,可以解决客户方面的相对问题?

最佳回答

您也可以使用游戏规程中所用的时间包。 因此,你将掌握更多数据,以纳入你的统计。 (这一方法也有助于避免因额外拨付数据而产生的间接费用。) 你只是利用你已经交换的数据来做你们的统计。

你也可以开始使用其他衡量标准(例如差异),以便更准确地估计你的连接质量。

问题回答

我的客户时间为即将离任的包裹,其答复保留了原来的时间。 这样,你就可以计算四舍五入,同时回避服务器和客户衣物所造成的任何问题,而并非完全同步。

如果你正在测量双轨,诸如24小时漂流、HW锁和OS皮等因素会影响你的衡量。 如果没有在硬件上花钱,那么,最接近的是使用RDTSC指令。 但是,难民高专署没有自己的问题,你必须认真看待它。





相关问题
Spring Properties File

Hi have this j2ee web application developed using spring framework. I have a problem with rendering mnessages in nihongo characters from the properties file. I tried converting the file to ascii using ...

Logging a global ID in multiple components

I have a system which contains multiple applications connected together using JMS and Spring Integration. Messages get sent along a chain of applications. [App A] -> [App B] -> [App C] We set a ...

Java Library Size

If I m given two Java Libraries in Jar format, 1 having no bells and whistles, and the other having lots of them that will mostly go unused.... my question is: How will the larger, mostly unused ...

How to get the Array Class for a given Class in Java?

I have a Class variable that holds a certain type and I need to get a variable that holds the corresponding array class. The best I could come up with is this: Class arrayOfFooClass = java.lang....

SQLite , Derby vs file system

I m working on a Java desktop application that reads and writes from/to different files. I think a better solution would be to replace the file system by a SQLite database. How hard is it to migrate ...

热门标签