0
我目前正在进行一些使用我开发的对等服务应用程序的性能测试。JUnit性能测试(Contiperf)
我对性能测试的经验很少。我无法找到一个体面的指南,我基本上是随机挑选数字。 (即要使用的线程数量)
有没有人有关于这个问题的任何建议?即有多少线程等。
我正在使用contiperf。基于注释的性能测试。下面是一个样本测试方法。
@Rule
public ContiPerfRule i = new ContiPerfRule();
@Test
@PerfTest(duration = 5000, threads = 10)
@Required(throughput = 50000)
public void test12() throws InterruptedException, FileNotFoundException, CertificateException
{
nodes.iterator().next().lookup(ee33.getSerialNumber().toString()+ee33.getPublicKey().toString());
}
感谢您的答复。我会照你的建议去做 – Travis 2012-07-09 15:31:12
恕我直言,你不知道它可以做什么,直到你打破它。 ;) – 2012-07-09 15:46:37