LevelDB.NET性能测试

Datetime:2016-08-23 00:46:11          Topic: Leveldb  Performance Test           Share
public static void WriteTest( object state)
     {
       while ( true )
       {
         User user = new User();
         string id = GetKey().ToString( "000000000000000000000" );
         user.Name = id;
         user.EMail = id + "@msn.com" ;
         user.CrateTime = DateTime.Now;
         user.City = "GZ" + id;
         user.Country = "CN" + id;
         user.Address = "sdfffffffffffffffffffffffffafjsdfjsljfsjfls" +id;
         user.Phone = id;
         user.Region = "gd" ;
         db.Set(user.Name, user);
         System.Threading.Interlocked.Increment( ref mCount);
       }
     }




About List