private static Test createFullTextVideoSearchDaoImpl2LoadTest() {
//1个线程0.4s+,10个线程3s+,100个线程35s+
int maxUsers = 100;
long maxElapsedTime = 1500;
Test testCase = new FullTextVideoSearchDaoImpl2Test("testSearch");
Test timedTest = new TimedTest(testCase, maxElapsedTime);
Test loadTest = new LoadTest(timedTest, maxUsers);
return loadTest;
}
本文介绍了一个使用FullTextVideoSearchDaoImpl2进行视频搜索性能测试的方法。通过调整并发线程数来观察不同负载下搜索操作的响应时间:1个线程响应时间超过0.4秒,10个线程超过3秒,100个线程则超过35秒。通过这些数据可以帮助我们了解系统的性能瓶颈。
1946

被折叠的 条评论
为什么被折叠?



