diff --git a/src/Yitter.IdGenTest/Program.cs b/src/Yitter.IdGenTest/Program.cs index fa88c8cb57461c3cc9a812159cdac695a446dc7a..cd61a39e8af36efc715af6f0ec3db94cb0d687b8 100644 --- a/src/Yitter.IdGenTest/Program.cs +++ b/src/Yitter.IdGenTest/Program.cs @@ -9,7 +9,7 @@ namespace Yitter.OrgSystem.TestA class Program { static int workerCount = 1; - static int genIdCount = 50000; // 计算ID数量 + static int genIdCount = 100000; // 计算ID数量 static bool single = true; static bool outputLog = true; static IIdGenerator IdGen = null; @@ -23,7 +23,7 @@ namespace Yitter.OrgSystem.TestA while (true) { Go(); - Thread.Sleep(500); + Thread.Sleep(5000); Console.WriteLine("Hello World!"); } } @@ -35,7 +35,7 @@ namespace Yitter.OrgSystem.TestA var newConfig = new IdGeneratorOptions() { - Method = 2, + Method = 1, StartTime = DateTime.Now.AddYears(-1), //TopOverCostCount = 1000,