我正致力于在 Java开展一个多功能项目,我正在努力改进我如何收集超常衡量结果。
我目前的设置是,定期发送一批UDP包裹,由服务器篡改,然后退回,然后计算和记录相应费用。 然后,我抽取样本数,以达到排位平均数。
这似乎是一种合理的解决办法,可以解决客户方面的相对问题?
我正致力于在 Java开展一个多功能项目,我正在努力改进我如何收集超常衡量结果。
我目前的设置是,定期发送一批UDP包裹,由服务器篡改,然后退回,然后计算和记录相应费用。 然后,我抽取样本数,以达到排位平均数。
这似乎是一种合理的解决办法,可以解决客户方面的相对问题?
您也可以使用游戏规程中所用的时间包。 因此,你将掌握更多数据,以纳入你的统计。 (这一方法也有助于避免因额外拨付数据而产生的间接费用。) 你只是利用你已经交换的数据来做你们的统计。
你也可以开始使用其他衡量标准(例如差异),以便更准确地估计你的连接质量。
我的客户时间为即将离任的包裹,其答复保留了原来的时间。 这样,你就可以计算四舍五入,同时回避服务器和客户衣物所造成的任何问题,而并非完全同步。
如果你真的开始项目,则考虑使用一个网络框架,如KryoNet,这个网络有海洋金属和高效的序列化,并将自动通过UDP发送纸浆申请。 你们能够很容易地获得时间价值。
如果你正在测量双轨,诸如24小时漂流、HW锁和OS皮等因素会影响你的衡量。 如果没有在硬件上花钱,那么,最接近的是使用RDTSC指令。 但是,难民高专署没有自己的问题,你必须认真看待它。
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 ...
Check this, List<String> list = new ArrayList<String>(); for (int i = 0; i < 10000; i++) { String value = (""+UUID.randomUUID().getLeastSignificantBits()).substring(3, ...
I am in the middle of solving a problem where I think it s best suited for a decorator and a state pattern. The high level setting is something like a sandwich maker and dispenser, where I have a set ...
I have been trying to execute a MS SQL Server stored procedure via JDBC today and have been unsuccessful thus far. The stored procedure has 1 input and 1 output parameter. With every combination I ...
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 ...
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 ...
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....
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 ...