@@ -16,7 +16,7 @@ public class RedisStressTest
1616 public void UT_RedisStress_BigAddDelete ( RedisContext context )
1717 {
1818 string key = "UT_RedisStress_BigAddDelete" ;
19- int total = 1000 ;
19+ int total = 10 ;
2020 var sw = Stopwatch . StartNew ( ) ;
2121 for ( int i = 0 ; i < total ; i ++ )
2222 {
@@ -44,7 +44,7 @@ public void UT_CacheBigRemoveByTag(RedisContext context)
4444 {
4545 string key = "UT_CacheBigRemoveByTag" ;
4646 string tag = "mytag" ;
47- int total = 1000 ;
47+ int total = 10 ;
4848 for ( int i = 0 ; i < total ; i ++ )
4949 {
5050 context . Cache . SetObject ( key + i , new User ( ) { Id = i } , new [ ] { tag } ) ;
@@ -79,7 +79,7 @@ public void UT_RedisBomb(RedisContext context)
7979 public void UT_RedisStress_GetAllTags ( RedisContext context )
8080 {
8181 const string test = "UT_RedisStress_GetAllTags" ;
82- const int keyCount = 1500 ;
82+ const int keyCount = 15 ;
8383 var realTags = new HashSet < string > ( ) ;
8484 for ( int mod = 1 ; mod <= 216 ; mod ++ )
8585 {
@@ -124,7 +124,7 @@ private void Stress(int keyCount, string test, RedisContext context)
124124 public void UT_RedisStress_GetKeysByTag ( RedisContext context )
125125 {
126126 const string test = "UT_RedisStress_GetKeysByTag" ;
127- const int keyCount = 1500 ;
127+ const int keyCount = 15 ;
128128 for ( int mod = 1 ; mod <= 216 ; mod ++ )
129129 {
130130 context . Cache . InvalidateKeysByTag ( GetTag ( mod , test ) ) ;
@@ -169,7 +169,7 @@ public void UT_CleanupTags(RedisContext context)
169169 public void UT_RedisStress_RemoveKeysByTags ( RedisContext context )
170170 {
171171 const string test = "UT_RedisStress_RemoveKeysByTags" ;
172- const int keyCount = 3000 ;
172+ const int keyCount = 30 ;
173173 RemoveKeys ( keyCount , test , context ) ;
174174 for ( int mod = 1 ; mod <= 216 ; mod ++ )
175175 {
@@ -214,7 +214,7 @@ public void UT_RedisStress_RemoveKeysByTags(RedisContext context)
214214 public void UT_CacheString_BigString ( RedisContext context )
215215 {
216216 var key = "UT_CacheString_BigString" ;
217- int i = 999999 ;
217+ int i = 99999 ;
218218 context . Cache . Remove ( key ) ;
219219 var cs = context . Collections . GetRedisString ( key ) ;
220220 cs . SetRange ( i , "test" ) ;
0 commit comments