From bae2eb337592a034fb994f0c098abccb7bb5cddd Mon Sep 17 00:00:00 2001 From: zhouzj Date: Fri, 12 Mar 2021 14:52:34 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=B5=8B=E8=AF=95=E9=85=8D?= =?UTF-8?q?=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Yitter.IdGenTest/Program.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Yitter.IdGenTest/Program.cs b/src/Yitter.IdGenTest/Program.cs index fa88c8c..cd61a39 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,