Skip to content

Commit

Permalink
feat: 测试Mongo分布式锁性能.
Browse files Browse the repository at this point in the history
  • Loading branch information
joesdu committed Sep 4, 2024
1 parent de141dd commit 9d80e4c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion sample/WebApi.Test.Unit/Script.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export const options = {
{ duration: "60s", target: 100 }, // Ramp-up to 100 users over 30s
{ duration: "60s", target: 200 }, // Ramp-up to 200 users over 1 minute
{ duration: "60s", target: 300 }, // Ramp-up to 300 users over 1 minute
{ duration: "60s", target: 500 }, // Ramp-down to 0 users over 1 minute
{ duration: "60s", target: 500 }, // Ramp-down to 0 users over 1 minute
],
};

Expand Down
2 changes: 2 additions & 0 deletions sample/WebApi.Test.Unit/ServiceModules/MongoModule.cs
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,8 @@ public override void ConfigureServices(ConfigureServicesContext context)
// }).Build());
// b.AddSimpleConsole();
//}));
cs.MaxConnecting = int.MaxValue;
cs.MaxConnectionPoolSize = int.MaxValue;
};
});
context.Services.RegisterSerializer(new DateOnlySerializerAsString());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public static IServiceCollection RegisterSerializer<T>(this IServiceCollection s
}

/// <summary>
/// 注册动态类型(<see langword="dynamic" /> | <see langword="object" /> )序列化支持
/// 注册动态类型 [<see langword="dynamic" /> | <see langword="object" />] 序列化支持
/// </summary>
/// <param name="services"></param>
/// <returns></returns>
Expand Down

0 comments on commit 9d80e4c

Please sign in to comment.