#171 Redis的Benchmark测试用例, 完整的session性能测试。

This commit is contained in:
Calvin
2013-01-23 09:58:09 +08:00
parent c56734c52c
commit e8dd4f2fb9
@@ -8,14 +8,13 @@ import com.google.common.util.concurrent.RateLimiter;
public abstract class BenchmarkTask implements Runnable {
protected int threadIndex;
protected BenchmarkBase parent;
protected Date startTime;
//use for print info//
protected RateLimiter rateLimiter;
protected int printInfoInterval; //��为秒.
protected long previous = 0L;
protected BenchmarkBase parent;
protected Date startTime;
public BenchmarkTask(int threadIndex, BenchmarkBase parent, int printInfoInterval) {
this.threadIndex = threadIndex;
@@ -49,7 +48,7 @@ public abstract class BenchmarkTask implements Runnable {
}
/**
* 间隔printInfoInterval的时间打印信息。
* æ¯�é—´éš”printInfoInterval的时间打å�°ä¿¡æ�¯ã?
*/
protected void printInfo(int current) {
if (rateLimiter.tryAcquire()) {