1
0
mirror of synced 2025-12-24 14:07:57 +08:00

auto commit

This commit is contained in:
yitter
2021-09-27 14:30:35 +08:00
parent 069cf45625
commit 1e2cd11be2
6 changed files with 138 additions and 17 deletions

View File

@@ -11,7 +11,7 @@ namespace Yitter.OrgSystem.TestA
class Program
{
// 测试参数默认配置下最佳性能是10W/s
static int genIdCount = 50000; // 计算ID数量如果要验证50W效率请将TopOverCostCount设置为20000或适当增加SeqBitLength
static int genIdCount = 2;//50000; // 计算ID数量如果要验证50W效率请将TopOverCostCount设置为20000或适当增加SeqBitLength
static short method = 1; // 1-漂移算法2-传统算法
@@ -35,9 +35,12 @@ namespace Yitter.OrgSystem.TestA
WorkerIdBitLength = 6,
SeqBitLength = 6,
DataCenterIdBitLength = 10,
TopOverCostCount = 2000,
//MinSeqNumber = 1,
//TimestampType = 1,
// MinSeqNumber = 1,
// MaxSeqNumber = 200,
// BaseTime = DateTime.Now.AddYears(-10),
@@ -128,6 +131,7 @@ namespace Yitter.OrgSystem.TestA
MinSeqNumber = options.MinSeqNumber,
MaxSeqNumber = options.MaxSeqNumber,
Method = options.Method,
//TimestampType = 1,
};
Console.WriteLine("Gen" + i);