diff --git a/NewLife.Redis/Redis.cs b/NewLife.Redis/Redis.cs index a0274bc..78ceea9 100644 --- a/NewLife.Redis/Redis.cs +++ b/NewLife.Redis/Redis.cs @@ -1061,6 +1061,19 @@ protected override Int32 GetTimesPerThread(Boolean rand, Int32 batch) /// 随机读写 /// 批量操作 protected override Int64 BenchInc(String[] keys, Int64 times, Int32 threads, Boolean rand, Int32 batch) + { + //if (rand && batch > 10) times /= 10; + return base.BenchRemove(keys, times, threads, rand, batch); + } + + /// 删除测试 + /// + /// + /// + /// + /// + /// + protected override Int64 BenchRemove(String[] keys, Int64 times, Int32 threads, Boolean rand, Int32 batch) { if (rand && batch > 10) times /= 10; return base.BenchInc(keys, times, threads, rand, batch);