1
0
mirror of synced 2026-04-18 22:38:41 +08:00

修改测试配置

This commit is contained in:
zhouzj
2021-03-12 14:55:58 +08:00
parent bae2eb3375
commit ae0ad9cabd

View File

@@ -9,7 +9,8 @@ namespace Yitter.OrgSystem.TestA
class Program
{
static int workerCount = 1;
static int genIdCount = 100000; // 计算ID数量
static int genIdCount = 10000; // 计算ID数量
static short method = 1; // 1-漂移算法2-传统算法
static bool single = true;
static bool outputLog = true;
static IIdGenerator IdGen = null;
@@ -35,7 +36,7 @@ namespace Yitter.OrgSystem.TestA
var newConfig = new IdGeneratorOptions()
{
Method = 1,
Method = method,
StartTime = DateTime.Now.AddYears(-1),
//TopOverCostCount = 1000,